Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: can not close workspace modal

QiShaoXuan4545c4b56f52
diff --git a/packages/app/src/ui/modal/ModalCloseButton.tsx b/packages/app/src/ui/modal/ModalCloseButton.tsx
index b42d687ca7..f5e4eaf079 100644
--- a/packages/app/src/ui/modal/ModalCloseButton.tsx
+++ b/packages/app/src/ui/modal/ModalCloseButton.tsx
@@ -28,7 +28,7 @@ export const ModalCloseButton = ({
<CloseIcon />
</StyledIconButton>
) : (
- <IconButton>
+ <IconButton {...props}>
<CloseIcon />
</IconButton>
);