From bca1f621135431b6f62cabbce593f7261a805890 Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Merino Date: Fri, 12 Jul 2024 16:30:35 +0200 Subject: Pages: File: Add file page --- src/App.tsx | 4 ++++ src/pages/File.tsx | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 src/pages/File.tsx 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() { } /> + + } /> notfound

} /> diff --git a/src/pages/File.tsx b/src/pages/File.tsx new file mode 100644 index 0000000..f1377b2 --- /dev/null +++ b/src/pages/File.tsx @@ -0,0 +1,21 @@ +import { useParams } from "react-router-dom" +import SideBar from "../components/Sidebar/Sidebar" + +export default function File() { + let { filepath } = useParams(); + + console.log("FILEPATH: ", filepath) + + return ( + <> +
+ +
+
+ {filepath} +
+
+
+ + ) +} -- cgit 1.4.1