diff --git a/src/App.tsx b/src/App.tsx index ec66560..e75d981 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -88,15 +88,6 @@ function HabitTrackerContent() { const renderHabitsView = () => (
-
-
- -
-
- -
-
-
@@ -168,79 +160,72 @@ function HabitTrackerContent() {
-
-
-
-

Your Habits

-

Track your weekly progress

-
-
- - - +
+
+
+
+

Your Habits

+

Track your weekly progress

+
+
+ + + +
-
- {loading ? ( -
-
-
- ) : error ? ( -
- {error} - -
- ) : ( - <> - -

- Keep up the good work! Consistency is key. -

- - )} + {loading ? ( +
+
+
+ ) : error ? ( +
+ {error} + +
+ ) : ( + <> + +

+ Keep up the good work! Consistency is key. +

+ + )} +
); const renderCalendarView = () => (
-
-
- -
-
- -
-
- -
+
+
+
+ +
+
+ +
+
+ +
-
+
{activeView === 'habits' && renderHabitsView()} {activeView === 'calendar' && renderCalendarView()} {activeView === 'settings' && } diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index ae9b372..6049480 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -63,10 +63,18 @@ export const Sidebar: React.FC = ({ activeView, setActiveView }) =
-
- -
- {user?.email} +
+ +
+ + {user?.email} +