|
|
|
@ -137,7 +137,7 @@ const SidebarMenu = ({ |
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
if (!isLogin) { |
|
|
|
|
navigate('/'); |
|
|
|
|
navigate("/"); |
|
|
|
|
} |
|
|
|
|
}, [isLogin]); |
|
|
|
|
return ( |
|
|
|
@ -152,7 +152,9 @@ const SidebarMenu = ({ |
|
|
|
|
<div className="flex flex-row items-center mb-10"> |
|
|
|
|
<Avatar size={60} rounded={true} /> |
|
|
|
|
<p className="text-green7B font-bold text-base flex-1 mx-2"> |
|
|
|
|
{user.firstName + " " + user.lastName} |
|
|
|
|
{`${user.firstName === null ? user.firstName : " "}` + |
|
|
|
|
" " + |
|
|
|
|
user.lastName} |
|
|
|
|
</p> |
|
|
|
|
</div> |
|
|
|
|
<Dropdown |
|
|
|
@ -222,8 +224,6 @@ SidebarMenu.defaultProps = { |
|
|
|
|
icon: sms, |
|
|
|
|
title: "پشتیبانی", |
|
|
|
|
notification: null, |
|
|
|
|
list: [ |
|
|
|
|
{ title: "ثبت نظر", value: "setTicket" }, |
|
|
|
|
], |
|
|
|
|
list: [{ title: "ثبت نظر", value: "setTicket" }], |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|