diff --git a/src/components/ui/modal/modal.tsx b/src/components/ui/modal/modal.tsx index 2781bd0c9..045909030 100644 --- a/src/components/ui/modal/modal.tsx +++ b/src/components/ui/modal/modal.tsx @@ -13,6 +13,11 @@ const messages = defineMessages({ confirm: { id: 'confirmations.delete.confirm', defaultMessage: 'Delete' }, }); +const themes = { + normal: 'bg-white p-6 shadow-xl', + transparent: 'bg-transparent p-0 shadow-none', +}; + const widths = { xs: 'max-w-xs', sm: 'max-w-sm', @@ -45,12 +50,8 @@ interface IModal { confirmationFullWidth?: boolean; /** Callback when the modal is closed. */ onClose?: () => void; - /** Sets whether the modal will have a custom padding different from the default one. */ - padding?: string; - /** Sets whether the modal will have a custom shadow different from the default one. */ - shadow?: string; - /** Sets whether the modal will have a custom background different from the default one. */ - background?: string; + /** Theme for the modal. */ + theme?: keyof typeof themes; /** Callback when the secondary action is chosen. */ secondaryAction?: (event?: React.MouseEvent) => void; /** Secondary button text. */ @@ -79,9 +80,7 @@ const Modal = React.forwardRef(({ confirmationTheme, confirmationFullWidth, onClose, - padding = 'p-6', - shadow = 'shadow-xl', - background = 'bg-white', + theme = 'normal', secondaryAction, secondaryDisabled = false, secondaryText, @@ -104,7 +103,7 @@ const Modal = React.forwardRef(({
diff --git a/src/features/ui/components/modals/onboarding-flow-modal/onboarding-flow-modal.tsx b/src/features/ui/components/modals/onboarding-flow-modal/onboarding-flow-modal.tsx index ce1445c94..82f2b11cc 100644 --- a/src/features/ui/components/modals/onboarding-flow-modal/onboarding-flow-modal.tsx +++ b/src/features/ui/components/modals/onboarding-flow-modal/onboarding-flow-modal.tsx @@ -75,7 +75,7 @@ const OnboardingFlowModal: React.FC = ({ onClose }) => { return ( - + {steps.map((step, i) => (