Decrease toast durations
This commit is contained in:
parent
10d7664733
commit
41a251c2ac
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ const showToast = ({ type, ...props }: NotificationProps) => {
|
||||||
? 'Error'
|
? 'Error'
|
||||||
: 'Info';
|
: 'Info';
|
||||||
|
|
||||||
const defaultDuration = type === 'error' ? 4000 : 2000;
|
const defaultDuration = type === 'error' ? 2000 : 1000;
|
||||||
|
|
||||||
return showNotification({
|
return showNotification({
|
||||||
autoClose: defaultDuration,
|
autoClose: defaultDuration,
|
||||||
|
|
Reference in a new issue