feat: require owner login and add onboarding

This commit is contained in:
2026-09-28 19:14:14 +09:00
parent 57882cf5f9
commit 85d23a328b
42 changed files with 2400 additions and 23 deletions
+6 -1
View File
@@ -1,3 +1,4 @@
import { useRouteContext } from '@tanstack/react-router'
import {
Activity,
Bell,
@@ -52,6 +53,7 @@ const nav = [
{ name: 'Profile', icon: UserRound },
]
export function VitalsPage() {
const { auth } = useRouteContext({ from: '__root__' })
const [section, setSection] = useState('Body')
const [mobileMenu, setMobileMenu] = useState(false)
const [detail, setDetail] = useState<string>()
@@ -141,7 +143,10 @@ export function VitalsPage() {
className="vital-profile"
onClick={() => setDetail('Profile')}
>
<span className="vital-avatar">Y</span>Yuta
<span className="vital-avatar">
{auth.owner?.name.slice(0, 1).toUpperCase()}
</span>
{auth.owner?.name}
<ChevronDown />
</button>
</div>