Add admin check to button

This commit is contained in:
Alex Holliday
2024-08-27 19:51:39 -07:00
parent 75c8f8190f
commit d62dc1f2ba
+1 -1
View File
@@ -552,7 +552,7 @@ const Monitors = ({ isAdmin }) => {
Heres an overview of your uptime monitors.
</Typography>
</Box>
{monitorState.monitors?.length !== 0 && (
{isAdmin && monitorState.monitors?.length !== 0 && (
<Button
level="primary"
label="Create monitor"