Skip to content

Commit

Permalink
pfe-107 Changed import type for constantspayex file in index
Browse files Browse the repository at this point in the history
  • Loading branch information
PriJoh committed Dec 17, 2024
1 parent 93e1b05 commit 533c7cc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/App/ComponentsDocumentation/components/Card/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ const basename = process.env.basename;
const brand = process.env.brand;

const Overview = () => {


const [overviewCards, setOverviewCards] = useState(null);

useEffect(() => {
const loadOverviewCards = async () => {
const constants = await import(`./${brand === "payex" ? "constantspayex" : "constants"}`);
setOverviewCards(constants.overviewCards);
};

loadOverviewCards();
}, [brand]);


return (
<>
<h2 id="overview">Overview</h2>
Expand Down

0 comments on commit 533c7cc

Please sign in to comment.