Skip to content

Commit 85071da

Browse files
Merge pull request #10683 from marmelab/fix-use-notify-example
[Doc] Fix `useNotify` custom notification with close example
2 parents c2d8edc + f6a9845 commit 85071da

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)