diff --git a/src/assets/icons/iconMenu.svg b/src/assets/icons/iconMenu.svg new file mode 100644 index 00000000..c1fc5fb6 --- /dev/null +++ b/src/assets/icons/iconMenu.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/icons/iconSearch.svg b/src/assets/icons/iconSearch.svg new file mode 100644 index 00000000..ac0c10a9 --- /dev/null +++ b/src/assets/icons/iconSearch.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/entities/HeaderAccount/HeaderAccount.tsx b/src/entities/HeaderAccount/HeaderAccount.tsx index a491de62..d09938cb 100644 --- a/src/entities/HeaderAccount/HeaderAccount.tsx +++ b/src/entities/HeaderAccount/HeaderAccount.tsx @@ -1,6 +1,7 @@ import { FC, lazy, useState, Suspense, useEffect } from 'react' import { useSelector } from 'react-redux' +import SearchIcon from '@/assets/icons/iconSearch.svg' import { getUserAuthStatus } from '@/features/login/model/selectors/getUserAuthStatus' import { logout } from '@/features/login/model/services/logout/logout' import { loginActions } from '@/features/login/model/slice/loginSlice' @@ -11,9 +12,11 @@ import PersonIcon from '@/shared/icons/person.svg' import PersonAuthIcon from '@/shared/icons/person_auth.svg' import ScalesIcon from '@/shared/icons/scales.svg' import { useAppDispatch } from '@/shared/libs/hooks/store' +import { useResize } from '@/shared/libs/hooks/useResize' import { Button } from '@/shared/ui/Button/Button' import Link from '@/shared/ui/Link/Link' import Modal from '@/shared/ui/Modal/Modal' +import Paragraph from '@/shared/ui/Paragraph/Paragraph' import Spinner from '@/shared/ui/Spinner/Spinner' import styles from './headerAccount.module.scss' @@ -33,6 +36,8 @@ const HeaderAccount: FC = ({ counter, total }) => { const [isModalOpen, setIsModalOpen] = useState(false) const [isModalClosing, setIsModalClosing] = useState(false) + const { isScreenLg } = useResize() + const dispatch = useAppDispatch() const isAuth = useSelector(getUserAuthStatus) @@ -68,41 +73,48 @@ const HeaderAccount: FC = ({ counter, total }) => { )} -