From c4dd658aa7a5820df122baad7fc3ee8514eec75c Mon Sep 17 00:00:00 2001 From: jason Date: Sat, 7 Mar 2026 21:29:05 -0600 Subject: [PATCH] feat: wrap App with ToastProvider for global notifications --- client/src/App.jsx | 45 ++++++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/client/src/App.jsx b/client/src/App.jsx index 8639fb6..b3645c2 100755 --- a/client/src/App.jsx +++ b/client/src/App.jsx @@ -2,6 +2,7 @@ import React, { useState } from 'react'; import ViolationForm from './components/ViolationForm'; import Dashboard from './components/Dashboard'; import ReadmeModal from './components/ReadmeModal'; +import ToastProvider from './components/ToastProvider'; const tabs = [ { id: 'dashboard', label: '📊 Dashboard' }, @@ -45,29 +46,31 @@ export default function App() { const [showReadme, setShowReadme] = useState(false); return ( -
- - -
- {tab === 'dashboard' ? : } + {showReadme && setShowReadme(false)} />}
- - {showReadme && setShowReadme(false)} />} -
+ ); }