refactor: update generic dialog to have title and maybe description

This commit is contained in:
Caio Cabral committed 2024-10-22 11:38:54 -04:00
1 parent 4fd11fbd1c
commit f1d331cdf8
5 files changed
+44 -79

No files matched your search

+3 -16
View File
@@ -445,26 +445,13 @@ const PageSpeedConfigure = () => {
isLoading={buttonLoading}
/>
<GenericDialog
title={"modal-delete-pagespeed-monitor"}
description={"delete-pagespeed-monitor-confirmation"}
title={"Do you really want to delete this monitor?"}
description={"Once deleted, this monitor cannot be retrieved."}
open={isOpen}
onClose={() => setIsOpen(false)}
theme={theme}
>
<Typography
id="modal-delete-pagespeed-monitor"
component="h2"
variant="h2"
fontWeight={500}
>
Do you really want to delete this monitor?
</Typography>
<Typography
id="delete-pagespeed-monitor-confirmation"
variant="body1"
>
Once deleted, this monitor cannot be retrieved.
</Typography>
{/* Make it dialog? */}
<Stack
direction="row"
gap={theme.spacing(4)}