Fix import error in use-toast
The module '@/components/ui/use-toast' does not export 'useToastStore'. Remove the import.
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
import * as React from "react"
|
||||
import { ToastProps } from "@/components/ui/toast"
|
||||
|
||||
import { useToastStore } from "@/components/ui/use-toast"
|
||||
// useToastStore 대신 toast를 임포트합니다.
|
||||
import { toast as originalToast } from "@/components/ui/use-toast"
|
||||
import { ToastActionElement } from "@/components/ui/toast"
|
||||
|
||||
// 기본 지속 시간 늘리기 (기존 3000ms → 3500ms)
|
||||
@@ -82,5 +83,6 @@ export const toast = (props: Omit<ToasterToast, "id">) => {
|
||||
duration: props.duration || DEFAULT_TOAST_DURATION,
|
||||
};
|
||||
|
||||
return useToastStore().addToast(toastWithDefaults);
|
||||
// 원래 toast 함수 호출
|
||||
return originalToast(toastWithDefaults);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user