Skip to content

Commit

Permalink
chore: standardize latest updates close modal btn
Browse files Browse the repository at this point in the history
  • Loading branch information
Vojimirovich committed Nov 22, 2024
1 parent 98a850f commit 06ef36b
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions frontend/src/components/organisms/Modals/PreviewReasoningModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,19 +208,12 @@ export const PreviewReasoningModal = () => {
</Typography>
</Box>
)}
<Box
bgcolor="white"
px={{ xxs: 1.4, md: 3 }}
pt={2.5}
sx={{ borderBottomLeftRadius: 20, borderBottomRightRadius: 20 }}
>
<Box px={{ xxs: 1.4, md: 3 }} pt={2.5} display="flex" gap={2}>
{onActionClick && (
<Button
onClick={() => onActionClick(govAction.id)}
variant="contained"
size="large"
sx={{
width: "100%",
marginBottom: 1.5
}}
data-testid="rationale-modal-action-button"
Expand All @@ -230,10 +223,9 @@ export const PreviewReasoningModal = () => {
)}
<Button
onClick={onClose}
variant="contained"
size="large"
variant="outlined"
sx={{
width: "100%"
width: !onActionClick ? "100%" : undefined
}}
data-testid="rationale-modal-close-button"
>
Expand Down

0 comments on commit 06ef36b

Please sign in to comment.