v4.6.2-alpah (#511)

This commit is contained in:
Archer
2023-11-24 15:29:43 +08:00
committed by GitHub
parent 60f752629f
commit 9cb4280a16
208 changed files with 5396 additions and 3500 deletions

View File

@@ -6,10 +6,12 @@ import {
ModalHeader,
ModalCloseButton,
ModalContentProps,
Box
Box,
Image
} from '@chakra-ui/react';
interface Props extends ModalContentProps {
iconSrc?: string;
title?: any;
isCentered?: boolean;
isOpen: boolean;
@@ -19,6 +21,7 @@ interface Props extends ModalContentProps {
const MyModal = ({
isOpen,
onClose,
iconSrc,
title,
children,
isCentered,
@@ -51,8 +54,9 @@ const MyModal = ({
background={'#FBFBFC'}
borderBottom={'1px solid #F4F6F8'}
roundedTop={'lg'}
py={3}
py={'10px'}
>
{iconSrc && <Image mr={3} objectFit={'contain'} alt="" src={iconSrc} w={'20px'} />}
{title}
<Box flex={1} />
{onClose && <ModalCloseButton position={'relative'} top={0} right={0} />}