mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
fix: effect deps (#1940)
This commit is contained in:
@@ -53,10 +53,10 @@ export const AffineSharePage: FC<ShareMenuProps> = props => {
|
||||
}, [props.workspace.id, props.currentPage.id]);
|
||||
const onClickCreateLink = useCallback(() => {
|
||||
setIsPublic(true);
|
||||
}, [isPublic]);
|
||||
}, [setIsPublic]);
|
||||
const onClickCopyLink = useCallback(() => {
|
||||
navigator.clipboard.writeText(sharingUrl);
|
||||
}, []);
|
||||
}, [sharingUrl]);
|
||||
|
||||
return (
|
||||
<div className={menuItemStyle}>
|
||||
|
||||
@@ -32,7 +32,7 @@ export const PublicLinkDisableModal = ({
|
||||
portal: document.body,
|
||||
});
|
||||
onClose();
|
||||
}, []);
|
||||
}, [onClose, setIsPublic]);
|
||||
return (
|
||||
<Modal open={open} onClose={onClose}>
|
||||
<StyledModalWrapper>
|
||||
|
||||
Reference in New Issue
Block a user