This commit is contained in:
Archer
2023-11-28 19:28:46 +08:00
committed by GitHub
parent e765c3bf95
commit a74e1d7166
75 changed files with 1139 additions and 417 deletions

View File

@@ -10,7 +10,7 @@ import {
Image
} from '@chakra-ui/react';
interface Props extends ModalContentProps {
export interface MyModalProps extends ModalContentProps {
iconSrc?: string;
title?: any;
isCentered?: boolean;
@@ -28,7 +28,7 @@ const MyModal = ({
w = 'auto',
maxW = ['90vw', '600px'],
...props
}: Props) => {
}: MyModalProps) => {
return (
<Modal
isOpen={isOpen}
@@ -42,7 +42,7 @@ const MyModal = ({
minW={['90vw', '400px']}
maxW={maxW}
position={'relative'}
maxH={['80vh', '85vh']}
maxH={'85vh'}
{...props}
>
{!title && onClose && <ModalCloseButton zIndex={1} />}