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}
|
Hello, {authState.user.firstName}
|
||||||
</Typography>
|
</Typography>
|
||||||
{monitorState.monitors?.length !== 0 && (
|
{isAdmin && monitorState.monitors?.length !== 0 && (
|
||||||
<Button
|
<Button
|
||||||
level="primary"
|
level="primary"
|
||||||
label="Create monitor"
|
label="Create monitor"
|
||||||
|
|||||||
Reference in new issue
Block a user