fix: menu list

This commit is contained in:
ilham 2022-01-02 23:48:16 +07:00
parent abb67b8c65
commit b34d89763e

View File

@ -51,7 +51,15 @@ export const MenuList = observer((props) => {
overflowedIndicator={0}
forceSubMenuRender={true}
>
{store.authentication.userData.role === "Admin" || store.authentication.userData.role === "Admin Partner" && (
{store.authentication.userData.role === "Admin" && (
<Menu.Item key="home">
<Link to={LINKS.HOME}>
<HomeOutlined />
<span>Beranda</span>
</Link>
</Menu.Item>
)}
{store.authentication.userData.role === "Admin Partner" && (
<Menu.Item key="home">
<Link to={LINKS.HOME}>
<HomeOutlined />