diff --git a/components/Navbar/SwitchTheme/index.tsx b/components/Navbar/SwitchTheme/index.tsx index 8be9a8d8..1a356ae5 100644 --- a/components/Navbar/SwitchTheme/index.tsx +++ b/components/Navbar/SwitchTheme/index.tsx @@ -1,6 +1,5 @@ import clsx from 'clsx' -import { toast } from 'react-toastify' -import { selectTheme, ThemeEnum } from '../../../slices/themeSlice' +import { selectTheme, switchTheme, ThemeEnum } from '../../../slices/themeSlice' import { useAppDispatch, useAppSelector } from '../../../store/hooks' import styles from '../style.module.scss' import DarkIcon from './icon/dark.svg' @@ -11,8 +10,7 @@ export default function SwitchTheme() { const dispatch = useAppDispatch() const _changeTheme = () => { - toast.warn('In Development') - // dispatch(switchTheme()) + dispatch(switchTheme()) } return (