|
@@ -22,6 +22,8 @@ import {ROUTE_PATH} from "@constants/routes";
|
|
|
import {useSelector} from "react-redux";
|
|
import {useSelector} from "react-redux";
|
|
|
import {getMailNew} from "@features/mailSlice";
|
|
import {getMailNew} from "@features/mailSlice";
|
|
|
import {checkIsStandalone} from "@utils/helpers";
|
|
import {checkIsStandalone} from "@utils/helpers";
|
|
|
|
|
+import {useThemeProvider} from "@contexts/themeContext";
|
|
|
|
|
+import {APP_THEME} from "@constants/app";
|
|
|
const i18n=global.i18n;
|
|
const i18n=global.i18n;
|
|
|
|
|
|
|
|
const BottomNav = () => {
|
|
const BottomNav = () => {
|
|
@@ -30,7 +32,8 @@ const BottomNav = () => {
|
|
|
const isStoreRoute = useStoreRoute();
|
|
const isStoreRoute = useStoreRoute();
|
|
|
const {setCartOpen} = useShopProvider();
|
|
const {setCartOpen} = useShopProvider();
|
|
|
const mailNew=useSelector(getMailNew);
|
|
const mailNew=useSelector(getMailNew);
|
|
|
- const isStandalone=checkIsStandalone()
|
|
|
|
|
|
|
+ const isStandalone=checkIsStandalone();
|
|
|
|
|
+ const {theme} = useThemeProvider();
|
|
|
|
|
|
|
|
// return (
|
|
// return (
|
|
|
// <div className={styles.container}>
|
|
// <div className={styles.container}>
|
|
@@ -83,7 +86,7 @@ const BottomNav = () => {
|
|
|
{/* <use xlinkHref={`${ticon_gift}#gift`} />*/}
|
|
{/* <use xlinkHref={`${ticon_gift}#gift`} />*/}
|
|
|
{/*</svg>*/}
|
|
{/*</svg>*/}
|
|
|
{/*<TabGift className={styles.icon}/>*/}
|
|
{/*<TabGift className={styles.icon}/>*/}
|
|
|
- <svg className={styles.bottomicon}>
|
|
|
|
|
|
|
+ <svg className={`${styles.bottomicon} ${theme===APP_THEME.LIGHT?styles.bottomicon_light:''}`}>
|
|
|
<use xlinkHref={`${symbol}#icon_Giftbox`}/>
|
|
<use xlinkHref={`${symbol}#icon_Giftbox`}/>
|
|
|
</svg>
|
|
</svg>
|
|
|
<span className={styles.bottomtxt}>{i18n.t("tab.promotion")}</span>
|
|
<span className={styles.bottomtxt}>{i18n.t("tab.promotion")}</span>
|
|
@@ -93,7 +96,7 @@ const BottomNav = () => {
|
|
|
{/* <use xlinkHref={`${symbol_m}#icon_Home_1`} />*/}
|
|
{/* <use xlinkHref={`${symbol_m}#icon_Home_1`} />*/}
|
|
|
{/*</svg>*/}
|
|
{/*</svg>*/}
|
|
|
{/*<TabWithdraw className={styles.icon}/>*/}
|
|
{/*<TabWithdraw className={styles.icon}/>*/}
|
|
|
- <svg className={styles.bottomicon}>
|
|
|
|
|
|
|
+ <svg className={`${styles.bottomicon} ${theme===APP_THEME.LIGHT?styles.bottomicon_light:''}`}>
|
|
|
<use xlinkHref={`${symbol}#icon_WithDraw`}/>
|
|
<use xlinkHref={`${symbol}#icon_WithDraw`}/>
|
|
|
</svg>
|
|
</svg>
|
|
|
<span className={styles.bottomtxt}>{i18n.t("tab.withdraw")}</span>
|
|
<span className={styles.bottomtxt}>{i18n.t("tab.withdraw")}</span>
|
|
@@ -111,7 +114,7 @@ const BottomNav = () => {
|
|
|
{/* <use xlinkHref={`${symbol_m}#icon_Account`} />*/}
|
|
{/* <use xlinkHref={`${symbol_m}#icon_Account`} />*/}
|
|
|
{/*</svg>*/}
|
|
{/*</svg>*/}
|
|
|
{/*<TabMessage className={styles.icon}/>*/}
|
|
{/*<TabMessage className={styles.icon}/>*/}
|
|
|
- <svg className={styles.bottomicon}>
|
|
|
|
|
|
|
+ <svg className={`${styles.bottomicon} ${theme===APP_THEME.LIGHT?styles.bottomicon_light:''}`}>
|
|
|
<use xlinkHref={`${symbol}#icon_Mail`}/>
|
|
<use xlinkHref={`${symbol}#icon_Mail`}/>
|
|
|
</svg>
|
|
</svg>
|
|
|
<span className={styles.bottomtxt}>{i18n.t("tab.message")}</span>
|
|
<span className={styles.bottomtxt}>{i18n.t("tab.message")}</span>
|
|
@@ -121,7 +124,7 @@ const BottomNav = () => {
|
|
|
{/* <use xlinkHref={`${symbol}#icon_Chat`} />*/}
|
|
{/* <use xlinkHref={`${symbol}#icon_Chat`} />*/}
|
|
|
{/*</svg>*/}
|
|
{/*</svg>*/}
|
|
|
{/*<TabSett className={styles.icon}></TabSett>*/}
|
|
{/*<TabSett className={styles.icon}></TabSett>*/}
|
|
|
- <svg className={styles.bottomicon}>
|
|
|
|
|
|
|
+ <svg className={`${styles.bottomicon} ${theme===APP_THEME.LIGHT?styles.bottomicon_light:''}`}>
|
|
|
<use xlinkHref={`${symbol}#icon_Support`}/>
|
|
<use xlinkHref={`${symbol}#icon_Support`}/>
|
|
|
</svg>
|
|
</svg>
|
|
|
<span className={styles.bottomtxt}>{i18n.t("tab.service")}</span>
|
|
<span className={styles.bottomtxt}>{i18n.t("tab.service")}</span>
|