ok
This commit is contained in:
@@ -301,7 +301,7 @@ const Header = ({
|
||||
<Title>
|
||||
{shopName == null
|
||||
? HeaderText == null
|
||||
? "Groovebrew"
|
||||
? "kedaimaster"
|
||||
: HeaderText
|
||||
: generateMenuHeader(shopName)}
|
||||
</Title>
|
||||
@@ -331,12 +331,13 @@ const Header = ({
|
||||
Edit profile
|
||||
</Child>
|
||||
)}
|
||||
{shopId && user.roleId == 1 && (
|
||||
<Child onClick={goToAdminCafes}>see your {user.userId == shopOwnerId ? 'other' : ''} cafes</Child>)}
|
||||
{shopId &&
|
||||
user.userId == shopOwnerId &&
|
||||
user.username !== undefined &&
|
||||
user.roleId === 1 && (
|
||||
<>
|
||||
<Child onClick={goToAdminCafes}>see your other cafes</Child>
|
||||
|
||||
{/* <Child onClick={() => setModal("update_stock")}>
|
||||
update stock
|
||||
@@ -365,7 +366,7 @@ const Header = ({
|
||||
</Child>
|
||||
<Child hasChildren>
|
||||
clerks
|
||||
<Child onClick={() => setModal("craete_account_clerk")}>
|
||||
<Child onClick={() => setModal("create_clerk")}>
|
||||
+ Add clerk
|
||||
</Child>
|
||||
{shopClerks &&
|
||||
|
||||
Reference in New Issue
Block a user