profile button added
This commit is contained in:
@@ -13,7 +13,7 @@ import { ChangeLang } from './ChangeLang';
|
||||
import { useLoginModal, useRegisterModal } from '@/shared/zustand/auth';
|
||||
import { useTranslations } from 'next-intl';
|
||||
import { useUserPlagiatStore } from '@/shared/zustand/user';
|
||||
import { LogOut } from 'lucide-react';
|
||||
import { LogOut, User } from 'lucide-react';
|
||||
import { useEffect, useState } from 'react';
|
||||
|
||||
function AuthButtons() {
|
||||
@@ -29,7 +29,10 @@ function AuthButtons() {
|
||||
signup: { title: t('signup'), url: '#' },
|
||||
};
|
||||
|
||||
const userItem = [{ title: t('logout'), url: '/', icon: LogOut }];
|
||||
const userItem = [
|
||||
{ title: t('profile'), url: '/profile', icon: User },
|
||||
{ title: t('logout'), url: '/', icon: LogOut },
|
||||
];
|
||||
|
||||
const toggleLoginModal = useLoginModal((state) => state.toggleLoginModal);
|
||||
const toggleRegisterModal = useRegisterModal(
|
||||
|
||||
Reference in New Issue
Block a user