diff --git a/public/images/logo.png b/public/images/logo.png new file mode 100644 index 00000000..647b40e6 Binary files /dev/null and b/public/images/logo.png differ diff --git a/src/components/layout/header/index.tsx b/src/components/layout/header/index.tsx index f849a5e3..2e1009bd 100644 --- a/src/components/layout/header/index.tsx +++ b/src/components/layout/header/index.tsx @@ -1,5 +1,6 @@ 'use client'; import Link from 'next/link'; +import { useRouter } from 'next/navigation'; import { Icon } from '@/components/icon'; import { cn } from '@/lib/utils'; @@ -8,11 +9,17 @@ import { useAuth, useNotification } from '@/providers'; export const Header = () => { const { isAuthenticated } = useAuth(); const { unReadCount, receivedNewNotification } = useNotification(); + const router = useRouter(); + + const onLogoClick = (e: React.MouseEvent) => { + e.preventDefault(); + router.push('/'); + }; return (