Skip to content

Commit f6a9845

Browse files
committed
[Doc] Fix useNotify custom notification with close example [no ci]
1 parent 160c8c3 commit f6a9845

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/useNotify.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ export const CheckForApplicationUpdate = () => {
240240
const notify = useNotify();
241241

242242
const onNewVersionAvailable = () => {
243-
// autoHideDuration is set to 0 to disable the auto hide feature
244-
notify(<ApplicationUpdateNotification />, { autoHideDuration: 0 });
243+
// autoHideDuration is set to null to disable the auto hide feature
244+
notify(<ApplicationUpdateNotification />, { autoHideDuration: null });
245245
};
246246

247247
useCheckForApplicationUpdate({ onNewVersionAvailable, ...rest });

0 commit comments

Comments
 (0)