update src/views/Dashboard/layouts/SidebarMenu/index.js

temp
mahdi 2 years ago
parent f4178f5e66
commit 7746f99f80
  1. 10
      src/views/Dashboard/layouts/SidebarMenu/index.js

@ -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" }],
},
};

Loading…
Cancel
Save