diff --git a/frontend/composables/global/useToast.ts b/frontend/composables/global/useToast.ts index 4649bac..a68c0b0 100644 --- a/frontend/composables/global/useToast.ts +++ b/frontend/composables/global/useToast.ts @@ -1,14 +1,14 @@ export type ToastOptions = { description?: string; duration?: number; - status?: "success" | "error" | "info" | "warning", -} + status?: "success" | "error" | "info" | "warning"; +}; type Toast = { id: number; message: string; - options?: ToastOptions -} + options?: ToastOptions; +}; const toasts = ref([]); @@ -20,12 +20,12 @@ export function useToast() { }; const destroyToast = (id: number) => { - toasts.value = toasts.value.filter(toast => toast.id !== id); + toasts.value = toasts.value.filter((toast) => toast.id !== id); }; return { toasts, addToast, - destroyToast + destroyToast, }; -} \ No newline at end of file +}