updated types and poller

This commit is contained in:
KS Jannette
2026-03-01 20:32:21 -05:00
parent f01115de86
commit 25850825b4
10 changed files with 272 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ export default function App() {
<Route path="/" element={<Addresses />} />
<Route path="/addresses" element={<Addresses />} />
<Route path="/alerts" element={<Alerts />} />
<Route path="/history" element={<AlertHistory />} />
<Route path="/alertevents" element={<AlertHistory />} />
<Route path="/onboarding" element={<Onboarding />} />
<Route path="*" element={<Navigate to="/addresses" />} />
</Routes>

View File

@@ -4,7 +4,7 @@ import { useAuth } from "../contexts/AuthContext";
const navLinks = [
{ to: "/addresses", label: "Addresses" },
{ to: "/alerts", label: "Configure Alerts" },
{ to: "/history", label: "Alert History" },
{ to: "/alertevents", label: "Alert Events" },
];
export default function Navbar() {

View File

@@ -36,7 +36,7 @@ export default function AlertHistory() {
return (
<div style={{ maxWidth: "800px", margin: "0 auto", padding: "2rem" }}>
<h1>Recent Alerts</h1>
<h1>Recent Alert Events</h1>
{alertEvents.length === 0 ? (
<p style={{ color: "#808080" }}>No alerts yet</p>