refactor Modal component styles to match provider

This commit is contained in:
jeffvli
2025-11-14 00:39:09 -08:00
parent 65b72298df
commit fe51b671c7
+14 -2
View File
@@ -28,20 +28,32 @@ export const Modal = ({ children, classNames, handlers, ...rest }: ModalProps) =
return ( return (
<MantineModal <MantineModal
{...rest} {...rest}
centered={true}
classNames={{ classNames={{
body: styles.body, body: styles.body,
close: styles.close,
content: styles.content, content: styles.content,
header: styles.header, header: styles.header,
inner: styles.inner,
overlay: styles.overlay,
root: styles.root, root: styles.root,
title: styles.title, title: styles.title,
...classNames, ...classNames,
}} }}
closeButtonProps={{
icon: <Icon icon="x" size="xl" />,
}}
onClose={handlers.close} onClose={handlers.close}
radius="lg" overlayProps={{
backgroundOpacity: 0.8,
blur: 4,
}}
radius="xl"
scrollAreaComponent={ScrollArea}
transitionProps={{ transitionProps={{
duration: 300, duration: 300,
exitDuration: 300, exitDuration: 300,
transition: 'fade', transition: 'fade' as const,
}} }}
> >
{children} {children}