mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
build: enhance tsconfig type check (#2732)
This commit is contained in:
@@ -183,6 +183,7 @@ function NotificationCard(props: NotificationCardProps): ReactElement {
|
||||
if (notification.undo) {
|
||||
return notification.undo();
|
||||
}
|
||||
return void 0;
|
||||
}, [notification]);
|
||||
|
||||
useEffect(() => {
|
||||
@@ -200,6 +201,7 @@ function NotificationCard(props: NotificationCardProps): ReactElement {
|
||||
h.filter(height => height.notificationKey !== notification.key)
|
||||
);
|
||||
}
|
||||
return () => {};
|
||||
}, [notification.key, setHeights]);
|
||||
return (
|
||||
<Toast.Root
|
||||
|
||||
Reference in New Issue
Block a user