From 7bab90c0926b4fe87a1a68fb569268e271384e6e Mon Sep 17 00:00:00 2001 From: Alexander Morugin Date: Mon, 6 May 2024 14:52:46 +0300 Subject: [PATCH] fix-1 enhancement_341_header_adaptive --- src/assets/icons/iconSearch.svg | 4 +- src/assets/images/header/iconSearch.svg | 4 -- src/entities/HeaderAccount/HeaderAccount.tsx | 25 +++---- .../HeaderAccount/headerAccount.module.scss | 70 ++++++++++--------- .../ui/HeaderMenuSign.module.scss | 4 ++ .../HeaderMenuSign/ui/HeaderMenuSign.tsx | 21 ++++-- 6 files changed, 73 insertions(+), 55 deletions(-) delete mode 100644 src/assets/images/header/iconSearch.svg diff --git a/src/assets/icons/iconSearch.svg b/src/assets/icons/iconSearch.svg index faeee762..ac0c10a9 100644 --- a/src/assets/icons/iconSearch.svg +++ b/src/assets/icons/iconSearch.svg @@ -1,4 +1,4 @@ - - + + diff --git a/src/assets/images/header/iconSearch.svg b/src/assets/images/header/iconSearch.svg deleted file mode 100644 index ac0c10a9..00000000 --- a/src/assets/images/header/iconSearch.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/src/entities/HeaderAccount/HeaderAccount.tsx b/src/entities/HeaderAccount/HeaderAccount.tsx index b77ab487..d09938cb 100644 --- a/src/entities/HeaderAccount/HeaderAccount.tsx +++ b/src/entities/HeaderAccount/HeaderAccount.tsx @@ -1,7 +1,7 @@ import { FC, lazy, useState, Suspense, useEffect } from 'react' import { useSelector } from 'react-redux' -import SearchIcon from '@/assets/images/header/iconSearch.svg' +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' @@ -16,6 +16,7 @@ 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' @@ -72,21 +73,21 @@ const HeaderAccount: FC = ({ counter, total }) => { )} -