+
{activeView === 'habits' && renderHabitsView()}
{activeView === 'calendar' && renderCalendarView()}
{activeView === 'settings' && }
diff --git a/src/components/HabitList.tsx b/src/components/HabitList.tsx
index e2c3857..e21e5eb 100644
--- a/src/components/HabitList.tsx
+++ b/src/components/HabitList.tsx
@@ -41,19 +41,14 @@ export function HabitList({
const date = new Date(dateStr);
return (
-
);
})}
- {showStreaks && (
- <>
- Current Streak
- Best Streak
- >
- )}
Actions
@@ -65,9 +60,7 @@ export function HabitList({
type="text"
value={habit.name}
onChange={(e) => onUpdateHabit(habit.id, e.target.value)}
- aria-label="Habit name"
- placeholder="Enter habit name"
- className="bg-transparent border-none focus:outline-none focus:ring-2 focus:ring-gray-300 rounded px-2"
+ className="bg-transparent border-none focus:outline-none focus:ring-2 focus:ring-gray-300 rounded px-2 w-full"
/>
{currentWeek.map((date) => (
@@ -76,27 +69,26 @@ export function HabitList({
{
- onToggleHabit(habit.id, date);
- }}
- aria-label={`Mark ${habit.name} as completed for ${date}`}
+ onChange={() => onToggleHabit(habit.id, date)}
className="sr-only"
/>
-
+
+
+
+
+
+ {getDayName(dateStr)}
+ {getDayName(dateStr)}
+ {getDayName(dateStr).slice(0, 1)}
{date.getDate()}
+
{habit.completedDates.includes(date) && (
-