diff --git a/index.html b/index.html index ed49b2f07f..e76e32b8fa 100644 --- a/index.html +++ b/index.html @@ -1,55 +1,62 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - KyberSwap - Trading Smart - - - - + + + - - - - - -
- - - -
-
- - - - - + + - - - - + diff --git a/src/components/Menu/index.tsx b/src/components/Menu/index.tsx index e20de57811..5e23226fbb 100644 --- a/src/components/Menu/index.tsx +++ b/src/components/Menu/index.tsx @@ -23,7 +23,6 @@ import Loader from 'components/Loader' import MenuFlyout from 'components/MenuFlyout' import Row, { AutoRow } from 'components/Row' import Toggle from 'components/Toggle' -import ThemeToggle from 'components/Toggle/ThemeToggle' import { TutorialIds } from 'components/Tutorial/TutorialSwap/constant' import { ENV_LEVEL, TAG } from 'constants/env' import { AGGREGATOR_ANALYTICS_URL, APP_PATHS, DMM_ANALYTICS_URL, TERM_FILES_PATH } from 'constants/index' @@ -40,13 +39,7 @@ import { PROFILE_MANAGE_ROUTES } from 'pages/NotificationCenter/const' import { ApplicationModal } from 'state/application/actions' import { useModalOpen, useToggleModal } from 'state/application/hooks' import { useTutorialSwapGuide } from 'state/tutorial/hooks' -import { - useDarkModeManager, - useHolidayMode, - useIsWhiteListKyberAI, - useKyberAIWidget, - useUserLocale, -} from 'state/user/hooks' +import { useHolidayMode, useIsWhiteListKyberAI, useKyberAIWidget, useUserLocale } from 'state/user/hooks' import { ExternalLink } from 'theme' import { isChristmasTime } from 'utils' @@ -218,7 +211,6 @@ export default function Menu() { const open = useModalOpen(ApplicationModal.MENU) const toggle = useToggleModal(ApplicationModal.MENU) - const [darkMode, toggleSetDarkMode] = useDarkModeManager() const [holidayMode, toggleHolidayMode] = useHolidayMode() const [kyberAIWidgetActive, toggleKyberAIWidget] = useKyberAIWidget() const { isWhiteList } = useIsWhiteListKyberAI() @@ -574,15 +566,6 @@ export default function Menu() { )} - { - toggleSetDarkMode() - handlePreferenceClickMixpanel('Dark Mode') - }} - > - Dark Mode - - { navigate(`${APP_PATHS.PROFILE_MANAGE}${PROFILE_MANAGE_ROUTES.PREFERENCE}`) diff --git a/src/state/user/hooks.tsx b/src/state/user/hooks.tsx index a859d904e3..66abb587ad 100644 --- a/src/state/user/hooks.tsx +++ b/src/state/user/hooks.tsx @@ -85,10 +85,9 @@ function deserializeToken(serializedToken: SerializedToken): Token { } export function useIsDarkMode(): boolean { - const userDarkMode = useSelector(state => state.user.userDarkMode) - const matchesDarkMode = useSelector(state => state.user.matchesDarkMode) - - return typeof userDarkMode !== 'boolean' ? matchesDarkMode : userDarkMode + // const userDarkMode = useSelector(state => state.user.userDarkMode) + // const matchesDarkMode = useSelector(state => state.user.matchesDarkMode) + return true } export function useDarkModeManager(): [boolean, () => void] {