diff options
Diffstat (limited to 'frontend/src/modules/task/notification.ts')
-rw-r--r-- | frontend/src/modules/task/notification.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/frontend/src/modules/task/notification.ts b/frontend/src/modules/task/notification.ts index bb796b213..97601b452 100644 --- a/frontend/src/modules/task/notification.ts +++ b/frontend/src/modules/task/notification.ts @@ -1,7 +1,7 @@ -import { NotificationProps } from "@mantine/notifications"; +import { NotificationData } from "@mantine/notifications"; export const notification = { - info: (title: string, message: string): NotificationProps => { + info: (title: string, message: string): NotificationData => { return { title, message, @@ -9,7 +9,7 @@ export const notification = { }; }, - warn: (title: string, message: string): NotificationProps => { + warn: (title: string, message: string): NotificationData => { return { title, message, @@ -18,7 +18,7 @@ export const notification = { }; }, - error: (title: string, message: string): NotificationProps => { + error: (title: string, message: string): NotificationData => { return { title, message, @@ -33,7 +33,7 @@ export const notification = { pending: ( id: string, header: string, - ): NotificationProps & { id: string } => { + ): NotificationData & { id: string } => { return { id, title: header, @@ -48,7 +48,7 @@ export const notification = { body: string, current: number, total: number, - ): NotificationProps & { id: string } => { + ): NotificationData & { id: string } => { return { id, title: header, @@ -57,7 +57,7 @@ export const notification = { autoClose: false, }; }, - end: (id: string, header: string): NotificationProps & { id: string } => { + end: (id: string, header: string): NotificationData & { id: string } => { return { id, title: header, |