Different dashboards for Home Banner

This commit is contained in:
2024-01-30 17:10:30 +01:00
parent 29e0345e1c
commit 2f90c4a6c2
10 changed files with 482 additions and 17 deletions
@@ -8,7 +8,7 @@ export default function HomeBannerOffersCard(props) {
useEffect(() => {
let { banner, banner_location } = props?.itemData;
if (banner_location === "LOCAL") {
const imagePath = require(`../../assets/images/${banner}`); // Replace with your directory path for local images
const imagePath = require(`../../assets/images/${banner}`);
setImageUrl(imagePath);
} else if (banner_location === "URL") setImageUrl(banner);
else return null;