diff --git a/public/assets/images/planetDarkLogo.svg b/public/assets/images/planetDarkLogo.svg new file mode 100644 index 0000000000..35175a6f7e --- /dev/null +++ b/public/assets/images/planetDarkLogo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/features/common/InputTypes/ToggleSwitch.tsx b/src/features/common/InputTypes/ToggleSwitch.tsx index 61c27daf89..3634399ca6 100644 --- a/src/features/common/InputTypes/ToggleSwitch.tsx +++ b/src/features/common/InputTypes/ToggleSwitch.tsx @@ -13,7 +13,9 @@ export default function ToggleSwitch(props: any) { }, }, checked: {}, - track: {}, + track: { + backgroundColor: '#787878', + }, })(Switch); return ( { const [width, setWidth] = React.useState(0); // default width, detect on server. @@ -35,8 +36,8 @@ export default function NavbarComponent(props: any) { yucatan: 'yucatan', partners: 'partners', changeChocolate: 'change-chocolate', - stopTalkingStartPlanting: 'stop-talking-start-planting' - } + stopTalkingStartPlanting: 'stop-talking-start-planting', + }; const [menu, setMenu] = React.useState(false); const [isMobile, setIsMobile] = React.useState(false); const [mobileWidth, setMobileWidth] = React.useState(false); @@ -75,7 +76,7 @@ export default function NavbarComponent(props: any) { } } - const { toggleTheme } = React.useContext(ThemeContext); + const { toggleTheme, theme } = React.useContext(ThemeContext); // if (isLoading) { // return ; @@ -162,12 +163,13 @@ export default function NavbarComponent(props: any) { ); } if (link === 'about' && SingleLink.visible) { - let aboutOnclick = `${SingleLink.onclick}${(process.env.TENANT === 'planet' || + let aboutOnclick = `${SingleLink.onclick}${ + (process.env.TENANT === 'planet' || process.env.TENANT === 'ttc') && - lang_path[i18n.language] + lang_path[i18n.language] ? lang_path[i18n.language] : '' - }`; + }`; aboutOnclick = isMobile ? '' : aboutOnclick; SingleLink = { @@ -179,7 +181,7 @@ export default function NavbarComponent(props: any) { } } if (link === 'shop' && mobileWidth) { - SingleLink.visible = false + SingleLink.visible = false; } return SingleLink.visible ? ( - + )} - - - + {theme === 'theme-light' ? ( + + + + ) : ( + + + + )} {ready && }