Skip to content

Commit

Permalink
pfe-107 Added overviewCards to specific brand
Browse files Browse the repository at this point in the history
  • Loading branch information
PriJoh committed Dec 19, 2024
1 parent e34b9da commit 379350a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 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,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",
Expand All @@ -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 (
<>
Expand Down

0 comments on commit 379350a

Please sign in to comment.