mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
Decrease toast durations
This commit is contained in:
@@ -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 New Issue
Block a user