fix:Toast 컴포넌트 이름 충돌 수정

레이아웃의 전역 Toast(SweetAlert)와 이름 충돌 → ToastNotification으로 변경

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
김보곤
2026-02-09 21:30:30 +09:00
parent beff95b4e1
commit ed2d3425b7

View File

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