Refactor useToast hook
The useToast hook was refactored into smaller, more manageable files to improve code organization and maintainability.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
|
||||
import React, { useState } from 'react';
|
||||
import { PlusIcon } from 'lucide-react';
|
||||
import { Dialog, DialogContent, DialogHeader, DialogTitle } from './ui/dialog';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
import { useToast } from "@/hooks/use-toast"
|
||||
import { useToast } from "@/hooks/toast"
|
||||
import {
|
||||
Toast,
|
||||
ToastClose,
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
|
||||
// Shadcn UI의 최신 버전에서는 use-toast가 hooks 폴더로 이동했습니다.
|
||||
// 이 파일은 기존 import 경로가 작동하도록 리디렉션합니다.
|
||||
import { useToast, toast } from "@/hooks/use-toast";
|
||||
|
||||
import { useToast, toast } from "@/hooks/toast";
|
||||
export { useToast, toast };
|
||||
export type { ToasterToast } from "@/hooks/use-toast";
|
||||
export type { ToasterToast } from "@/hooks/toast/types";
|
||||
|
||||
Reference in New Issue
Block a user