WP 9c Phase 1 #12

Merged
Lars merged 14 commits from develop into main 2026-03-22 14:14:34 +01:00
2 changed files with 8 additions and 2 deletions
Showing only changes of commit 5adec042a4 - Show all commits

View File

@ -1,6 +1,6 @@
import { useEffect } from 'react' import { useEffect } from 'react'
import { BrowserRouter, Routes, Route, NavLink, useNavigate } from 'react-router-dom' import { BrowserRouter, Routes, Route, NavLink, useNavigate } from 'react-router-dom'
import { LayoutDashboard, PlusSquare, TrendingUp, BarChart2, Settings, LogOut, Moon } from 'lucide-react' import { LayoutDashboard, PlusSquare, TrendingUp, BarChart2, Settings, LogOut } from 'lucide-react'
import { ProfileProvider, useProfile } from './context/ProfileContext' import { ProfileProvider, useProfile } from './context/ProfileContext'
import { AuthProvider, useAuth } from './context/AuthContext' import { AuthProvider, useAuth } from './context/AuthContext'
import { setProfileId } from './utils/api' import { setProfileId } from './utils/api'
@ -38,7 +38,6 @@ function Nav() {
{ to:'/', icon:<LayoutDashboard size={20}/>, label:'Übersicht' }, { to:'/', icon:<LayoutDashboard size={20}/>, label:'Übersicht' },
{ to:'/capture', icon:<PlusSquare size={20}/>, label:'Erfassen' }, { to:'/capture', icon:<PlusSquare size={20}/>, label:'Erfassen' },
{ to:'/history', icon:<TrendingUp size={20}/>, label:'Verlauf' }, { to:'/history', icon:<TrendingUp size={20}/>, label:'Verlauf' },
{ to:'/sleep', icon:<Moon size={20}/>, label:'Schlaf' },
{ to:'/analysis', icon:<BarChart2 size={20}/>, label:'Analyse' }, { to:'/analysis', icon:<BarChart2 size={20}/>, label:'Analyse' },
{ to:'/settings', icon:<Settings size={20}/>, label:'Einst.' }, { to:'/settings', icon:<Settings size={20}/>, label:'Einst.' },
] ]

View File

@ -45,6 +45,13 @@ const ENTRIES = [
to: '/activity', to: '/activity',
color: '#D4537E', color: '#D4537E',
}, },
{
icon: '🌙',
label: 'Schlaf',
sub: 'Schlafdaten erfassen oder Apple Health importieren',
to: '/sleep',
color: '#7B68EE',
},
{ {
icon: '📖', icon: '📖',
label: 'Messanleitung', label: 'Messanleitung',