remove menu and add redirect to profile
This commit is contained in:
parent
56e117b454
commit
07c7588d19
@ -8,7 +8,6 @@ import { Badge, Button, Icon, IconName, Typography } from "@/components/ui";
|
|||||||
import { useChats } from "@/providers/chats-provider";
|
import { useChats } from "@/providers/chats-provider";
|
||||||
import { ROUTES } from "@/shared/constants/client-routes";
|
import { ROUTES } from "@/shared/constants/client-routes";
|
||||||
|
|
||||||
import { useDrawer } from "..";
|
|
||||||
import Logo from "../Logo/Logo";
|
import Logo from "../Logo/Logo";
|
||||||
|
|
||||||
import styles from "./Header.module.scss";
|
import styles from "./Header.module.scss";
|
||||||
@ -28,7 +27,6 @@ export default function Header({
|
|||||||
isVisibleSearchIcon = true,
|
isVisibleSearchIcon = true,
|
||||||
isVisibleBackButton = false,
|
isVisibleBackButton = false,
|
||||||
}: HeaderProps) {
|
}: HeaderProps) {
|
||||||
const { open } = useDrawer();
|
|
||||||
const { totalUnreadCount } = useChats();
|
const { totalUnreadCount } = useChats();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
@ -49,7 +47,10 @@ export default function Header({
|
|||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
{isVisibleMenuButton && (
|
{isVisibleMenuButton && (
|
||||||
<Button className={styles.menuButton} onClick={open}>
|
<Button
|
||||||
|
className={styles.menuButton}
|
||||||
|
onClick={() => router.push(ROUTES.profile())}
|
||||||
|
>
|
||||||
<Icon name={IconName.Menu} />
|
<Icon name={IconName.Menu} />
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user