Changes
gpt-engineer-app[bot] committed
Nov 27, 2025 at 14:44 UTC
c8890c97dd557176d0f6fe2574b04cad79f0dabb
3 files changed
+15
-2
src/App.tsx
+2
@@ -7,6 +7,7 @@ import { ThemeProvider } from "@/components/ThemeProvider";
7
import Index from "./pages/Index";
8
import CFOOverview from "./pages/CFOOverview";
9
import EmployeePortal from "./pages/EmployeePortal";
10
+import PayAIAgent from "./pages/PayAIAgent";
11
import NotFound from "./pages/NotFound";
12
13
const queryClient = new QueryClient();
@@ -22,6 +23,7 @@ const App = () => (
23
<Route path="/" element={<Index />} />
24
<Route path="/cfo-overview" element={<CFOOverview />} />
25
<Route path="/employee-portal" element={<EmployeePortal />} />
26
+ <Route path="/pay-ai-agent" element={<PayAIAgent />} />
27
{/* ADD ALL CUSTOM ROUTES ABOVE THE CATCH-ALL "*" ROUTE */}
28
<Route path="*" element={<NotFound />} />
29
</Routes>
src/components/employee/EmployeeHeader.tsx
+4
-2
@@ -1,9 +1,11 @@
1
import { Button } from "@/components/ui/button";
2
import { ArrowLeft, Bell, User } from "lucide-react";
3
-import { Link } from "react-router-dom";
3
+import { Link, useNavigate } from "react-router-dom";
4
import { ThemeToggle } from "@/components/ThemeToggle";
5
6
const EmployeeHeader = () => {
7
+ const navigate = useNavigate();
8
+
9
return (
10
<header className="fixed top-0 left-0 right-0 z-50 bg-background/80 backdrop-blur-md border-b border-border">
11
<div className="container flex items-center justify-between h-16 md:h-20">
@@ -21,7 +23,7 @@ const EmployeeHeader = () => {
23
24
<div className="flex items-center gap-2">
25
<Button
24
- onClick={() => window.open('about:blank', '_blank')}
26
+ onClick={() => navigate('/pay-ai-agent')}
27
className="bg-primary text-primary-foreground hover:bg-primary/90 font-semibold rounded-full px-4"
28
>
29
Pay AI Agent
src/pages/PayAIAgent.tsx
new
+9
@@ -0,0 +1,9 @@
1
+const PayAIAgent = () => {
2
+ return (
3
+ <div className="min-h-screen bg-background">
4
+ {/* Empty page - ready for content */}
5
+ </div>
6
+ );
7
+};
8
+
9
+export default PayAIAgent;