feat: close #2267 display a modal to export image

This commit is contained in:
Yidadaa
2023-07-06 01:26:06 +08:00
parent 9e6617e3ca
commit 6c6a2d08db
4 changed files with 35 additions and 7 deletions

View File

@@ -95,6 +95,7 @@ interface ModalProps {
title: string;
children?: any;
actions?: JSX.Element[];
defaultMax?: boolean;
onClose?: () => void;
}
export function Modal(props: ModalProps) {
@@ -113,7 +114,7 @@ export function Modal(props: ModalProps) {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
const [isMax, setMax] = useState(false);
const [isMax, setMax] = useState(!!props.defaultMax);
return (
<div