From 6a402d81763a54f291743ac85cf4d7de9a3aa457 Mon Sep 17 00:00:00 2001 From: JinPark Date: Tue, 20 Dec 2022 09:31:36 +0100 Subject: [PATCH] change doc according to changing notification type --- docs/Actions.md | 8 ++++---- docs/Create.md | 2 +- docs/Datagrid.md | 6 +++--- docs/Edit.md | 2 +- docs/List.md | 2 +- docs/Show.md | 4 ++-- docs/ShowBase.md | 4 ++-- docs/useNotify.md | 2 +- docs/useRefresh.md | 2 +- docs/useShowController.md | 4 ++-- 10 files changed, 18 insertions(+), 18 deletions(-) diff --git a/docs/Actions.md b/docs/Actions.md index 98f0872e108..007ca23f85f 100644 --- a/docs/Actions.md +++ b/docs/Actions.md @@ -372,7 +372,7 @@ const ApproveButton = () => { }, onError: (error) => { // failure side effects go here - notify(`Comment approval error: ${error.message}`, { type: 'warning' }); + notify(`Comment approval error: ${error.message}`, { type: 'error' }); }, } ); @@ -410,7 +410,7 @@ const ApproveButton = () => { notify('Comment approved'); }, onError: (error) => { - notify(`Comment approval error: ${error.message}`, { type: 'warning' }); + notify(`Comment approval error: ${error.message}`, { type: 'error' }); }, } ); @@ -462,7 +462,7 @@ const ApproveButton = () => { - notify('Comment approved'); + notify('Comment approved', { undoable: true }); }, - onError: (error) => notify(`Error: ${error.message}`, { type: 'warning' }), + onError: (error) => notify(`Error: ${error.message}`, { type: 'error' }), } ); return