mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
refactor Modal component styles to match provider
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user