notification debounce constant

This commit is contained in:
vchikalkin 2021-06-07 10:49:26 +03:00
parent 757141661a
commit cda7589836
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import { notification } from 'antd';
import { NOTIFICATION_DEBOUNCE } from 'core/constants/debounce';
import { debounce } from 'lodash';
type TNotification = 'success' | 'info' | 'warning' | 'error';
@ -22,5 +23,5 @@ export const openNotification = ({
zIndex: 9999999999,
},
}),
750,
NOTIFICATION_DEBOUNCE,
);

View File

@ -1 +1,2 @@
export const DEFAULT_DEBOUNCE_DELAY = 350;
export const NOTIFICATION_DEBOUNCE = 750;