diff --git a/.env b/.env index 4fd8113..f6cef28 100644 --- a/.env +++ b/.env @@ -108,4 +108,7 @@ REACT_APP_APPLE_APP='https://itunes.apple.com/us/app/wrenchboard/id1435718367?ls REACT_APP_SHOW_NEW_FAMILY_DASH=1 # Displays the account dashboard -REACT_APP_SHOW_ACCOUNT_DASH=1 \ No newline at end of file +REACT_APP_SHOW_ACCOUNT_DASH=1 + +# Displays the slider banners +REACT_APP_SHOW_SLIDER_BANNERS=0 \ No newline at end of file diff --git a/.env.development b/.env.development index f5bc221..2c56608 100644 --- a/.env.development +++ b/.env.development @@ -76,4 +76,7 @@ REACT_APP_APPLE_APP='https://itunes.apple.com/us/app/wrenchboard/id1435718367?ls REACT_APP_SHOW_NEW_FAMILY_DASH=1 # Displays the account dashboard -REACT_APP_SHOW_ACCOUNT_DASH=1 \ No newline at end of file +REACT_APP_SHOW_ACCOUNT_DASH=1 + +# Displays the slider banners +REACT_APP_SHOW_SLIDER_BANNERS=0 \ No newline at end of file diff --git a/.env.production b/.env.production index 70d18a3..8edd0e7 100644 --- a/.env.production +++ b/.env.production @@ -82,4 +82,7 @@ REACT_APP_APPLE_APP='https://itunes.apple.com/us/app/wrenchboard/id1435718367?ls REACT_APP_SHOW_NEW_FAMILY_DASH=1 # Displays the account dashboard -REACT_APP_SHOW_ACCOUNT_DASH=1 \ No newline at end of file +REACT_APP_SHOW_ACCOUNT_DASH=1 + +# Displays the slider banners +REACT_APP_SHOW_SLIDER_BANNERS=0 \ No newline at end of file diff --git a/src/components/FamilyAcc/index.jsx b/src/components/FamilyAcc/index.jsx index 99f48af..0c88965 100644 --- a/src/components/FamilyAcc/index.jsx +++ b/src/components/FamilyAcc/index.jsx @@ -7,6 +7,7 @@ import React, { } from "react"; import { Link } from "react-router-dom"; import usersService from "../../services/UsersService"; +import Icons from "../Helpers/Icons"; import InputCom from "../Helpers/Inputs/InputCom"; import ModalCom from "../Helpers/ModalCom"; import Layout from "../Partials/Layout"; @@ -150,31 +151,44 @@ export default function FamilyAcc() { )} - - + + + + + + Activities + + + - - - - + + + + + + }> -
+
- {commonHeadData?.length > 0 && ( - + <> + {process.env.REACT_APP_SHOW_SLIDER_BANNERS === "1" && ( +
+ {commonHeadData?.length > 0 && ( + + )} +
)} - {/*
*/} - {/* /!*

*!/*/} - {/* /!* This is common head which will appear as needed , will take many shape*!/*/} - {/* /!*

*!/*/} - {/* /!*

*!/*/} - {/* /!* some space for extra texts here*!/*/} - {/* /!*

*!/*/} - {/* */} - {/*
*/} - {/*
*/} - {/*
*/} - {/* */} - {/* View Task*/} - {/* */} - - {/*
*/} - {/*
*/} -
+ ); }