notification debounce constant
This commit is contained in:
parent
757141661a
commit
cda7589836
@ -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,
|
||||
);
|
||||
|
||||
@ -1 +1,2 @@
|
||||
export const DEFAULT_DEBOUNCE_DELAY = 350;
|
||||
export const NOTIFICATION_DEBOUNCE = 750;
|
||||
|
||||
Reference in New Issue
Block a user