diff --git a/src/components/Dashboards/AccountDashboard.jsx b/src/components/Dashboards/AccountDashboard.jsx index 8c84348..75dc622 100644 --- a/src/components/Dashboards/AccountDashboard.jsx +++ b/src/components/Dashboards/AccountDashboard.jsx @@ -1,6 +1,18 @@ import React from "react"; +import { Link } from "react-router-dom"; -const AccountDashboard = ({ className }) => { +const AccountDashboard = ({ className, bannerList }) => { + const getUpperBanner = bannerList?.slice(0, 3); + + let getImage = ({banner_location, banner}) => { + if (banner_location == "LOCAL") { + return require(`../../assets/images/${banner}`); + } else { + return banner; + } + }; + + console.log(getUpperBanner); return (
Banner description text will come follow
+ + {title} + + + {desc} +