about summary refs log tree commit diff
path: root/src/App.tsx
diff options
context:
space:
mode:
authorManuel Palenzuela Merino <manuel.palenzuela@datadoghq.com>2024-07-12 16:30:35 +0200
committerManuel Palenzuela Merino <manuel.palenzuela@datadoghq.com>2024-07-12 16:31:19 +0200
commitbca1f621135431b6f62cabbce593f7261a805890 (patch)
tree323c48b81411f23869bb6fb116af6df74ad0dc1e /src/App.tsx
parentComponents: FileCompnent: Add filecomponent (diff)
downloadfs-tracer-frontend-bca1f621135431b6f62cabbce593f7261a805890.tar.gz
fs-tracer-frontend-bca1f621135431b6f62cabbce593f7261a805890.tar.bz2
fs-tracer-frontend-bca1f621135431b6f62cabbce593f7261a805890.zip
Pages: File: Add file page
Diffstat (limited to 'src/App.tsx')
-rw-r--r--src/App.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/App.tsx b/src/App.tsx
index b77acbc..8d5ebb4 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -7,6 +7,7 @@ import Home from './pages/Home'
 import Login from './pages/Login'
 import Logout from './pages/Logout';
 import Recent from './pages/Recent';
+import File from './pages/File';
 import { useLocalStorage } from "@uidotdev/usehooks";
 import { useState } from "react";
 import Search from "./pages/Search";
@@ -42,6 +43,9 @@ function App() {
             <Route path="/logout" element={
               <Logout supabase={supabase} session={session} setSession={setSession} timeframe={timeframe} setTimeframe={setTimeframe} />
             } />
+            <Route path="/file/:filepath" element={
+              <File supabase={supabase} session={session} setSession={setSession} timeframe={timeframe} setTimeframe={setTimeframe} />
+            } />
             <Route path="*" element={<p>notfound</p>} />
           </Routes>
         </BrowserRouter>