Decrease toast durations

This commit is contained in:
jeffvli 2023-05-21 07:18:41 -07:00
parent 10d7664733
commit 41a251c2ac

View file

@ -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,