From c1ed04f722121ca1bcd75f49e96deaba2f4bdbaf Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Thu, 11 Jul 2024 12:51:00 +0200 Subject: [PATCH] chore(Toast): simplify code now that `duration` is exposed --- src/runtime/components/Toast.vue | 9 +++------ src/runtime/components/Toaster.vue | 9 +-------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/src/runtime/components/Toast.vue b/src/runtime/components/Toast.vue index 79138404..c028640c 100644 --- a/src/runtime/components/Toast.vue +++ b/src/runtime/components/Toast.vue @@ -4,7 +4,7 @@ import type { ToastRootProps, ToastRootEmits } from 'radix-vue' import type { AppConfig } from '@nuxt/schema' import _appConfig from '#build/app.config' import theme from '#build/ui/toast' -import type { AvatarProps, ButtonProps, ToasterContext } from '../types' +import type { AvatarProps, ButtonProps } from '../types' const appConfig = _appConfig as AppConfig & { ui: { toast: Partial } } @@ -56,7 +56,7 @@ export interface ToastSlots {