In CancelFormDialog, we have too many variant-based styles all mixed together and broke up throughout the code. The logic for selecting and rendering styles is mixed to the point where it is difficult to understand the separation and which styles belong to which variants.
TASK: Refactor this component so that it renders two different dialogs based on the variant prop that already exists in the CancelDialogProps.
Remove all breakpoint-based styles: This means that there should be no styles declared in connection wtih breakpoints like this:
In CancelFormDialog, we have too many variant-based styles all mixed together and broke up throughout the code. The logic for selecting and rendering styles is mixed to the point where it is difficult to understand the separation and which styles belong to which variants.
TASK: Refactor this component so that it renders two different dialogs based on the variant prop that already exists in the
CancelDialogProps
.Rename methods:
handleClose
-->onClose
,handleCancel
--->onCancel
To get started, you could try rendering the dialog like this: