Skip to content

Commit

Permalink
pfe-104 Added imports for constants and pick constants based on brand
Browse files Browse the repository at this point in the history
  • Loading branch information
PriJoh committed Dec 20, 2024
1 parent 1a5669a commit b1dd6ed
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/App/ComponentsDocumentation/components/Card/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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 (
<>
<h2 id="overview">Overview</h2>
Expand Down

0 comments on commit b1dd6ed

Please sign in to comment.