Refactor useToast hook

The useToast hook was refactored into smaller, more manageable files to improve code organization and maintainability.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-16 09:47:29 +00:00
parent cd6c92d7de
commit 61acb461e0
11 changed files with 257 additions and 231 deletions

View File

@@ -1,3 +1,4 @@
import React, { useState } from 'react';
import { PlusIcon } from 'lucide-react';
import { Dialog, DialogContent, DialogHeader, DialogTitle } from './ui/dialog';

View File

@@ -1,5 +1,5 @@
import { useToast } from "@/hooks/use-toast"
import { useToast } from "@/hooks/toast"
import {
Toast,
ToastClose,

View File

@@ -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";