From 2dadddb31d957e334778c8edbaa1297c135732e3 Mon Sep 17 00:00:00 2001 From: rathi Date: Fri, 22 Nov 2024 01:57:45 -0500 Subject: [PATCH] Improved UI of mobile sidebar --- src/App.tsx | 24 +++++++++++++++++++++++- src/components/MobileNav.tsx | 22 +++++++++------------- 2 files changed, 32 insertions(+), 14 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 45eba2a..ec66560 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,5 +1,5 @@ import React, { useState, useEffect } from 'react'; -import { ChevronLeft, ChevronRight, Sun, Moon, Plus, Circle } from 'lucide-react'; +import { ChevronLeft, ChevronRight, Sun, Moon, Plus, Circle, User } from 'lucide-react'; import { HabitList } from './components/HabitList'; import { Calendar } from './components/Calendar'; import { Sidebar } from './components/Sidebar'; @@ -98,6 +98,28 @@ function HabitTrackerContent() {
+
+
+
+ +
+
+
+ {user?.email} +
+
+ Logged in +
+
+
+
+
= ({ activeView, setActiveView }) => { const { theme } = useThemeContext(); - const { signOut, user } = useAuth(); + const { signOut } = useAuth(); return ( <> - {/* Spacer to prevent content from being hidden behind the nav */} -
+