Add admin check to button
This commit is contained in:
1 parent
57058864ec
commit
934c558700
1 file changed
+1
-1
@@ -50,7 +50,7 @@ const Monitors = ({ isAdmin }) => {
|
||||
>
|
||||
Hello, {authState.user.firstName}
|
||||
</Typography>
|
||||
{monitorState.monitors?.length !== 0 && (
|
||||
{isAdmin && monitorState.monitors?.length !== 0 && (
|
||||
<Button
|
||||
level="primary"
|
||||
label="Create monitor"
|
||||
|
||||
Reference in new issue
Block a user