diff --git a/src/components/Navbar/NavbarBody/index.tsx b/src/components/Navbar/NavbarBody/index.tsx index 6f62d036ce..9e0f0f038a 100644 --- a/src/components/Navbar/NavbarBody/index.tsx +++ b/src/components/Navbar/NavbarBody/index.tsx @@ -4,6 +4,8 @@ import dynamic from 'next/dynamic'; import useTranslation from 'next-translate/useTranslation'; import { useDispatch } from 'react-redux'; +import SettingsDrawer from '../SettingsDrawer/SettingsDrawer'; + import styles from './NavbarBody.module.scss'; import ProfileAvatarButton from './ProfileAvatarButton'; @@ -11,16 +13,13 @@ import LanguageSelector from '@/components/Navbar/LanguageSelector'; import NavbarLogoWrapper from '@/components/Navbar/Logo/NavbarLogoWrapper'; import NavigationDrawer from '@/components/Navbar/NavigationDrawer/NavigationDrawer'; import SearchDrawer from '@/components/Navbar/SearchDrawer/SearchDrawer'; -import SettingsDrawer from '@/components/Navbar/SettingsDrawer/SettingsDrawer'; import Button, { ButtonShape, ButtonVariant } from '@/dls/Button/Button'; import Spinner from '@/dls/Spinner/Spinner'; import IconMenu from '@/icons/menu.svg'; import IconSearch from '@/icons/search.svg'; -import IconSettings from '@/icons/settings.svg'; import { setIsSearchDrawerOpen, setIsNavigationDrawerOpen, - setIsSettingsDrawerOpen, setDisableSearchDrawerTransition, } from '@/redux/slices/navbar'; import { logEvent } from '@/utils/eventLogger'; @@ -58,11 +57,6 @@ const NavbarBody: React.FC = () => { dispatch({ type: setDisableSearchDrawerTransition.type, payload: false }); }; - const openSettingsDrawer = () => { - logDrawerOpenEvent('settings'); - dispatch({ type: setIsSettingsDrawerOpen.type, payload: true }); - }; - return (