diff options
Diffstat (limited to 'apps/landing/src/App.tsx')
| -rw-r--r-- | apps/landing/src/App.tsx | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/apps/landing/src/App.tsx b/apps/landing/src/App.tsx index ddf92e32..45a019c5 100644 --- a/apps/landing/src/App.tsx +++ b/apps/landing/src/App.tsx @@ -1,13 +1,18 @@ import Homepage from "@/src/Homepage"; +import Pricing from "@/src/Pricing"; import Privacy from "@/src/Privacy"; +import { BrowserRouter, Route, Routes } from "react-router"; import "@karakeep/tailwind-config/globals.css"; export default function App() { - // Poor man router - if (window.location.pathname === "/privacy") { - return <Privacy />; - } - - return <Homepage />; + return ( + <BrowserRouter> + <Routes> + <Route path="/" element={<Homepage />} /> + <Route path="/pricing" element={<Pricing />} /> + <Route path="/privacy" element={<Privacy />} /> + </Routes> + </BrowserRouter> + ); } |
