common home banner head implemented
This commit is contained in:
@@ -22,8 +22,8 @@ export default function HomeSliders(props) {
|
||||
{/*<div className="item w-full h-full bg-white dark:bg-dark-white rounded-2xl overflow-hidden">*/}
|
||||
{/* <img src={slider3} alt="slider" className="w-full h-full" />*/}
|
||||
{/*</div>*/}
|
||||
{props.bannerList.map((item, index) => (
|
||||
<div className="item w-full h-full bg-white dark:bg-dark-white rounded-2xl overflow-hidden">
|
||||
{props.bannerList?.length && props.bannerList.map((item, index) => (
|
||||
<div key={index} className="item w-full h-full bg-white dark:bg-dark-white rounded-2xl overflow-hidden">
|
||||
<HomeBannerOffersCard
|
||||
itemData={item}
|
||||
/>
|
||||
|
||||
@@ -17,10 +17,7 @@ export default function Home(props) {
|
||||
|
||||
const {userDetails} = useSelector((state) => state?.userDetails)
|
||||
|
||||
const commonHeadData =()=>{
|
||||
console.log("COMMON HEAD DATA INDEX ----------------=====---------------------");
|
||||
return 0;
|
||||
}
|
||||
const {commonHeadBanner} = useSelector(state => state.commonHeadBanner)
|
||||
|
||||
// FUNCTION TO GET DASH DATA TO DETERMINE CURRENT TASK DUE TIME
|
||||
const getHomeDate = () => {
|
||||
@@ -42,7 +39,7 @@ export default function Home(props) {
|
||||
<Layout>
|
||||
<div className="home-page-wrapper">
|
||||
{userDetails && userDetails?.account_type == "FAMILY" && (
|
||||
<FamilyDash commonHeadData={commonHeadData} />
|
||||
<FamilyDash commonHeadData={props.bannerList} />
|
||||
)}
|
||||
{userDetails && userDetails?.account_type == "FULL" && (
|
||||
<FullAccountDash nextDueTask={nextDueTask} bannerList={props.bannerList} />
|
||||
|
||||
Reference in New Issue
Block a user