about summary refs log tree commit diff
path: root/src/pages
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/pages
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/pages')
-rw-r--r--src/pages/File.tsx21
1 files changed, 21 insertions, 0 deletions
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 (
+    <>
+      <div className="flex h-screen">
+        <SideBar />
+        <main className="flex-1 overflow-y-auto my-4">
+          <div className="flex flex-col items-center">
+            {filepath}
+          </div>
+        </main>
+      </div>
+    </>
+  )
+}