From 4d7934061ed2796c0a84d569a237e1f52acb03cb Mon Sep 17 00:00:00 2001 From: Rohit <130643902+Rohit10jr@users.noreply.github.com> Date: Mon, 8 Dec 2025 07:48:20 +0530 Subject: [PATCH] fix: Correct toast type import path in use-toast hook (#11791) This commit resolves an incorrect import path for `ToastProps` and `ToastActionElement` types within the `use-toast.tsx` hook. The current path, `@/registry/default/ui/toast`, does not reflect the actual file location in this repository. The import in `src/components/hooks/use-toast.tsx` has been updated from `@/registry/default/ui/toast` to the correct alias path: `@/components/ui/toast`. This ensures the types are resolved correctly and the codebase remains clean and functional. --- web/src/components/hooks/use-toast.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/hooks/use-toast.tsx b/web/src/components/hooks/use-toast.tsx index 3fc74a6b3..ca071d407 100644 --- a/web/src/components/hooks/use-toast.tsx +++ b/web/src/components/hooks/use-toast.tsx @@ -6,7 +6,7 @@ import * as React from 'react'; import type { ToastActionElement, ToastProps, -} from '@/registry/default/ui/toast'; +} from '@/components/ui/toast'; const TOAST_LIMIT = 1; const TOAST_REMOVE_DELAY = 1000000;