From 379350aa4e3f4c50eee0e1c7dc2ce290ee90ff58 Mon Sep 17 00:00:00 2001 From: PriJoh Date: Thu, 19 Dec 2024 14:06:19 +0100 Subject: [PATCH] pfe-107 Added overviewCards to specific brand --- src/App/ComponentsDocumentation/components/Card/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/App/ComponentsDocumentation/components/Card/index.js b/src/App/ComponentsDocumentation/components/Card/index.js index fad17cad99..42b124fd5b 100644 --- a/src/App/ComponentsDocumentation/components/Card/index.js +++ b/src/App/ComponentsDocumentation/components/Card/index.js @@ -8,7 +8,7 @@ import CardComponent from "@components/Card"; import MediaObject from "@components/MediaObject"; import CodeTags from "@components/CodeTags"; -import { overviewCards } from "./constants"; +//import { overviewCards } from "./constants"; const textArr = [ "This is a lot of text", @@ -20,6 +20,11 @@ const textArr = [ const basename = process.env.basename; const brand = process.env.brand; +// Här definieras overviewCards beroende på brand +const overviewCards = brand === "payex" + ? require("./constantspayex").overviewCards + : require("./constants").overviewCards; + const Overview = () => { return ( <>