replace loading button with button

This commit is contained in:
Alex Holliday committed 2025-02-13 15:20:12 -08:00
1 parent de71c5f339
commit 064a9f6d36
14 files changed
+57 -68

No files matched your search

+6 -7
View File
@@ -3,7 +3,6 @@ import { Box, Stack, Typography, Button, Switch } from "@mui/material";
import TextInput from "../../Components/Inputs/TextInput";
import Link from "../../Components/Link";
import Select from "../../Components/Inputs/Select";
import LoadingButton from "@mui/lab/LoadingButton";
import { useIsAdmin } from "../../Hooks/useIsAdmin";
import Dialog from "../../Components/Dialog";
import ConfigBox from "../../Components/ConfigBox";
@@ -328,7 +327,7 @@ const Settings = () => {
<Stack gap={theme.spacing(20)}>
<Box>
<Typography>Add demo monitors</Typography>
<LoadingButton
<Button
variant="contained"
color="accent"
loading={isLoading || authIsLoading || checksIsLoading}
@@ -336,11 +335,11 @@ const Settings = () => {
sx={{ mt: theme.spacing(4) }}
>
Add demo monitors
</LoadingButton>
</Button>
</Box>
<Box>
<Typography>Remove all monitors</Typography>
<LoadingButton
<Button
variant="contained"
color="error"
loading={isLoading || authIsLoading || checksIsLoading}
@@ -350,7 +349,7 @@ const Settings = () => {
sx={{ mt: theme.spacing(4) }}
>
Remove all monitors
</LoadingButton>
</Button>
</Box>
</Stack>
<Dialog
@@ -404,7 +403,7 @@ const Settings = () => {
direction="row"
justifyContent="flex-end"
>
<LoadingButton
<Button
loading={isLoading || authIsLoading || checksIsLoading}
disabled={Object.keys(errors).length > 0}
variant="contained"
@@ -413,7 +412,7 @@ const Settings = () => {
onClick={handleSave}
>
Save
</LoadingButton>
</Button>
</Stack>
</Stack>
</Box>