mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-26 03:11:12 +01:00
Use API client for notifications/license
This commit is contained in:
@@ -13,6 +13,7 @@ export function useNotificationToast() {
|
||||
id: string;
|
||||
timestamp: string;
|
||||
message: string;
|
||||
timeout?: number | null;
|
||||
action?: null | {
|
||||
url: string;
|
||||
label: string;
|
||||
@@ -23,7 +24,7 @@ export function useNotificationToast() {
|
||||
const actionLabel = payload.action?.label;
|
||||
showToast({
|
||||
id: payload.id,
|
||||
timeout: null,
|
||||
timeout: payload.timeout ?? undefined,
|
||||
message: payload.message,
|
||||
onClose: () => {
|
||||
markRead(payload.id)
|
||||
|
||||
Reference in New Issue
Block a user