Add admin check to button
This commit is contained in:
1 parent
75c8f8190f
commit
d62dc1f2ba
1 file changed
+1
-1
@@ -552,7 +552,7 @@ const Monitors = ({ isAdmin }) => {
|
|||||||
Here’s an overview of your uptime monitors.
|
Here’s an overview of your uptime monitors.
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
{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