Добавил уведомление о создании отчета
This commit is contained in:
@@ -10,8 +10,16 @@ export function useNotification() {
|
||||
return null
|
||||
}
|
||||
|
||||
const success = () => {
|
||||
|
||||
const success = (title, description = '', options = {}) => {
|
||||
return showNotification(
|
||||
{
|
||||
title,
|
||||
description,
|
||||
meta: options.meta || new Date().toLocaleDateString(),
|
||||
...options,
|
||||
type: 'success'
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
const errorApi = (data, content = '', options = {}) => {
|
||||
@@ -36,6 +44,7 @@ export function useNotification() {
|
||||
}
|
||||
|
||||
return {
|
||||
errorApi
|
||||
errorApi,
|
||||
success
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user