This commit is contained in:
Manav Rathi
2024-06-20 10:47:59 +05:30
parent c54c4022ad
commit 6ea003a9a1

View File

@@ -1,4 +1,3 @@
import ArrowForward from "@mui/icons-material/ArrowForward";
import {
Button,
Dialog,
@@ -6,8 +5,8 @@ import {
DialogContent,
DialogContentText,
DialogTitle,
styled,
TextField,
styled,
useMediaQuery,
type ModalProps,
} from "@mui/material";
@@ -84,18 +83,16 @@ export const DevSettings: React.FC<DevSettingsProps> = ({ open, onClose }) => {
fullWidth
disabled={form.isSubmitting}
disableRipple
endIcon={<ArrowForward />}
>
<ButtonContents>{"Save"}</ButtonContents>
{"Save"}
</StyledButton>
<StyledButton
onClick={onClose}
color="accent"
color="secondary"
fullWidth
disableRipple
endIcon={<ArrowForward />}
>
<ButtonContents>{"Continue"}</ButtonContents>
{"Cancel"}
</StyledButton>
</DialogActions>
</form>
@@ -110,10 +107,3 @@ const StyledButton = styled(Button)`
outline: 1px solid #aaa;
}
`;
const ButtonContents = styled("div")`
/* Make the button text fill the entire space so the endIcon shows at the
trailing edge of the button. */
width: 100%;
text-align: left;
`;