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:
parent
660fa8888b
commit
4d7934061e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue