about summary refs log tree commit diff
path: root/src/pages
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-07-03 10:09:49 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-07-03 10:09:49 +0200
commit064188855bdf8528e78afa684f3a247b64c69332 (patch)
treea99b94f9ef77d56e198611a646d2097cebd39afa /src/pages
parentComponents: SideBar: Change button color on hover (diff)
downloadfs-tracer-frontend-064188855bdf8528e78afa684f3a247b64c69332.tar.gz
fs-tracer-frontend-064188855bdf8528e78afa684f3a247b64c69332.tar.bz2
fs-tracer-frontend-064188855bdf8528e78afa684f3a247b64c69332.zip
Components: SideBar: Highlight current page
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/Home.tsx2
-rw-r--r--src/pages/Recent.tsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx
index 1bce297..37b97c3 100644
--- a/src/pages/Home.tsx
+++ b/src/pages/Home.tsx
@@ -36,7 +36,7 @@ export default function Home(props: any) {
   return (
     <>
       <div className="flex h-screen">
-        <SideBar />
+        <SideBar currentPage="Home" />
         <main className="overflow-y-auto flex flex-col flex-1 mx-5">
           <div className="flex flex-col w-full gap-7 flex-grow">
             <div className="flex flex-row gap-7 flex-grow">
diff --git a/src/pages/Recent.tsx b/src/pages/Recent.tsx
index cecef25..b0e0601 100644
--- a/src/pages/Recent.tsx
+++ b/src/pages/Recent.tsx
@@ -34,7 +34,7 @@ export default function Recent(props: any) {
   return (
     <>
       <div className="flex h-screen">
-        <SideBar />
+        <SideBar currentPage="Recent" />
         <main className="flex-1 overflow-y-auto">
           <div>
             {files.map((file: any) => (