fix:Toast 컴포넌트 이름 충돌 수정
레이아웃의 전역 Toast(SweetAlert)와 이름 충돌 → ToastNotification으로 변경 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -52,8 +52,8 @@
|
||||
return res.json();
|
||||
}
|
||||
|
||||
// --- Toast ---
|
||||
function Toast({ message, type, onClose }) {
|
||||
// --- ToastNotification ---
|
||||
function ToastNotification({ message, type, onClose }) {
|
||||
useEffect(() => {
|
||||
const t = setTimeout(onClose, 3000);
|
||||
return () => clearTimeout(t);
|
||||
@@ -546,7 +546,7 @@ function App() {
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-gray-50">
|
||||
{toast && <Toast message={toast.message} type={toast.type} onClose={() => setToast(null)} />}
|
||||
{toast && <ToastNotification message={toast.message} type={toast.type} onClose={() => setToast(null)} />}
|
||||
|
||||
{/* Header */}
|
||||
<div className="bg-white border-b border-gray-200 px-6 py-4">
|
||||
|
||||
Reference in New Issue
Block a user