From 941859c80b3d276e9b3bc627fd70f11d9a473443 Mon Sep 17 00:00:00 2001 From: Chika Date: Mon, 28 Sep 2020 16:41:59 +0300 Subject: [PATCH] change debounce --- src/client/Elements/Notification.ts | 3 +-- src/core/constants/debounce.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/client/Elements/Notification.ts b/src/client/Elements/Notification.ts index 7cf73e0..eb8d60a 100644 --- a/src/client/Elements/Notification.ts +++ b/src/client/Elements/Notification.ts @@ -1,5 +1,4 @@ import { notification } from 'antd'; -import { DEFAULT_DEBOUNCE_DELAY } from 'core/constants/debounce'; import { debounce } from 'lodash'; type TNotification = 'success' | 'info' | 'warning' | 'error'; @@ -23,5 +22,5 @@ export const openNotification = ({ zIndex: 9999999999, }, }), - 500, + 750, ); diff --git a/src/core/constants/debounce.js b/src/core/constants/debounce.js index aab9729..58f067e 100644 --- a/src/core/constants/debounce.js +++ b/src/core/constants/debounce.js @@ -1 +1 @@ -export const DEFAULT_DEBOUNCE_DELAY = 250; +export const DEFAULT_DEBOUNCE_DELAY = 350;