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.
This commit is contained in:
Rohit
2025-12-08 07:48:20 +05:30
committed by GitHub
parent 660fa8888b
commit 4d7934061e

View File

@ -6,7 +6,7 @@ import * as React from 'react';
import type { import type {
ToastActionElement, ToastActionElement,
ToastProps, ToastProps,
} from '@/registry/default/ui/toast'; } from '@/components/ui/toast';
const TOAST_LIMIT = 1; const TOAST_LIMIT = 1;
const TOAST_REMOVE_DELAY = 1000000; const TOAST_REMOVE_DELAY = 1000000;