From b1dd6ed4c10f4184ca27870eb38238def0099b2a Mon Sep 17 00:00:00 2001 From: PriJoh Date: Fri, 20 Dec 2024 11:07:47 +0100 Subject: [PATCH] pfe-104 Added imports for constants and pick constants based on brand --- .../ComponentsDocumentation/components/Card/index.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/App/ComponentsDocumentation/components/Card/index.js b/src/App/ComponentsDocumentation/components/Card/index.js index fad17cad99..2135214e1e 100644 --- a/src/App/ComponentsDocumentation/components/Card/index.js +++ b/src/App/ComponentsDocumentation/components/Card/index.js @@ -8,7 +8,10 @@ import CardComponent from "@components/Card"; import MediaObject from "@components/MediaObject"; import CodeTags from "@components/CodeTags"; -import { overviewCards } from "./constants"; +//import { overviewCards } from "./constants"; + +import { overviewCards as swedbankCards } from "./constants"; +import { overviewCards as payexCards } from "./constantspayex"; const textArr = [ "This is a lot of text", @@ -21,6 +24,11 @@ const basename = process.env.basename; const brand = process.env.brand; const Overview = () => { + + // Välj rätt constants baserat på brand + const overviewCards = brand === "payex" ? payexCards : swedbankCards; + + return ( <>

Overview