♻️ (notif) add queue notif service to lazy load notif lib
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { debounce } from 'lodash-es'
|
||||
import notif from '@/utils/notif'
|
||||
import queueNotifService from '@/services/QueueNotifService'
|
||||
import IColor from '@/models/IColor'
|
||||
import colors from '@/data/colors'
|
||||
|
||||
export const confirmation = debounce(
|
||||
(message: string) => {
|
||||
notif.success(message)
|
||||
queueNotifService.success(message)
|
||||
},
|
||||
3000,
|
||||
{
|
||||
@@ -15,7 +15,7 @@ export const confirmation = debounce(
|
||||
|
||||
export const alertMessage = debounce(
|
||||
(message: string) => {
|
||||
notif.error(message)
|
||||
queueNotifService.error(message)
|
||||
},
|
||||
3000,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user