Skip to content

Commit

Permalink
Merge pull request #685 from manojava-gk/fix/kits-arrow-and-type
Browse files Browse the repository at this point in the history
fix(kits): show/hide slider arrows
  • Loading branch information
maximilianong authored Feb 19, 2024
2 parents 55b04ab + 72ad3f8 commit 23ef5ca
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 25 deletions.
5 changes: 2 additions & 3 deletions src/components/RoleBasedEnrtyComponent/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,14 @@ import Slider from "react-slick";
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";
import Typography from '@mui/material/Typography';
import { carouselRoleBased } from "../../../utils/carouselRoleBased";
import styles from "./styles.module.css";
import { useMediaQuery } from '@mui/material';
import ArrowCircleRightIcon from '@mui/icons-material/ArrowCircleRight';
import sliderRightArrowImage from '@site/static/img/slider_right_icon.png'
import sliderLeftArrowImage from '@site/static/img/slider_left_icon.png';
import Link from "@docusaurus/Link";

export default function RoleBasedEnrtyComponent({data}) {
export default function RoleBasedEnrtyComponent({data, showArrow = true}) {
const isWeb = useMediaQuery('(min-width:1024px)');
const isMobile = useMediaQuery('(max-width:600px)');
function NextArrow (props) {
Expand Down Expand Up @@ -70,7 +69,7 @@ export default function RoleBasedEnrtyComponent({data}) {
autoplay: false,
infinite: false,
variableWidth: true,
arrows: true,
arrows: showArrow,
nextArrow: <NextArrow />,
prevArrow: <PrevArrow />,
initialSlide: 0,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Kits/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function KitsPage() {
>
<DeepdiveHeader {...headerInput} />
<main>
<RoleBasedEnrtyComponent data={carouselKitdeepdive} />
<RoleBasedEnrtyComponent showArrow={false} data={carouselKitdeepdive} />
<AboutUsCard {...aboutInput} />
<KitsGalleryWithFilters
itemsArray={kitsGallery}
Expand Down
2 changes: 1 addition & 1 deletion utils/carouselKitdeepdive.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const carouselKitdeepdive = [
{
id: 2,
title: "KIT Usage",
description: "How to use a KIT ?",
description: "How to use a KIT?",
navigate: "/kits-usage"
},
{
Expand Down
27 changes: 7 additions & 20 deletions utils/enablementServices.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ export const enablementServices = [
subTitle: "",
productDescription: "Tractus-X EDC provides a framework for sovereign data exchange containing modules for performing data query, data exchange, policy enforcement, monitoring, and auditing.",
githubRepo: [
"https://github.com/eclipse-tractusx/bpdm",
"https://github.com/daps-helm-chart",
"https://github.com/dft-frontend",
"https://github.com/bpdm"
"https://github.com/eclipse-tractusx/tractusx-edc"
],
committers: [],
mailTo: "",
Expand All @@ -19,10 +16,7 @@ export const enablementServices = [
subTitle: "",
productDescription: "The Managed Identity Wallets (MIW) service implements the Self-Sovereign-Identity (SSI) using did:web for the Catena-X data space.",
githubRepo: [
"https://github.com/eclipse-tractusx/bpdm",
"https://github.com/eclipse-tractusx/daps-helm-chart",
"https://github.com/eclipse-tractusx/dft-frontend",
"https://github.com/eclipse-tractusx/bpdm"
"https://github.com/eclipse-tractusx/managed-identity-wallet"
],
committers: [],
mailTo: "",
Expand All @@ -34,10 +28,7 @@ export const enablementServices = [
subTitle: "",
productDescription: "The digital twin registry is used to manage and discover digital twin meta-data. Each participant must register its digital twin and relevant sub-models in the digital twin registry to expose its data offering to other participants.",
githubRepo: [
"https://github.com/eclipse-tractusx/bpdm",
"https://github.com/eclipse-tractusx/daps-helm-chart",
"https://github.com/eclipse-tractusx/dft-frontend",
"https://github.com/eclipse-tractusx/bpdm"
"https://github.com/eclipse-tractusx/sldt-digital-twin-registry"
],
committers: [],
mailTo: "",
Expand All @@ -49,10 +40,7 @@ export const enablementServices = [
subTitle: "",
productDescription: "The Item Relationship Service (IRS) builds data chains and provides custom business logic for business applications and other services",
githubRepo: [
"https://github.com/eclipse-tractusx/bpdm",
"https://github.com/eclipse-tractusx/daps-helm-chart",
"https://github.com/eclipse-tractusx/dft-frontend",
"https://github.com/eclipse-tractusx/bpdm"
"https://github.com/eclipse-tractusx/item-relationship-service",
],
committers: [],
mailTo: "",
Expand All @@ -64,10 +52,9 @@ export const enablementServices = [
subTitle: "",
productDescription: "The Managed Identity Wallets (MIW) service implements the Self-Sovereign-Identity (SSI) using did:web for the Catena-X data space.",
githubRepo: [
"https://github.com/eclipse-tractusx/bpdm",
"https://github.com/eclipse-tractusx/daps-helm-chart",
"https://github.com/eclipse-tractusx/dft-frontend",
"https://github.com/eclipse-tractusx/bpdm"
"https://github.com/eclipse-tractusx/knowledge-agents",
"https://github.com/eclipse-tractusx/knowledge-agents-aas-bridge",
"https://github.com/eclipse-tractusx/knowledge-agents-edc"
],
committers: [],
mailTo: "",
Expand Down

0 comments on commit 23ef5ca

Please sign in to comment.