v1.21: Live-Stammdaten aus Master-Data-CSV importiert, Sync verworfen, Demo-Reste entfernt
This commit is contained in:
@@ -28,7 +28,7 @@ const navItems = [
|
||||
]
|
||||
|
||||
export default function AppLayout() {
|
||||
const { role, me, logout, threads } = useStore()
|
||||
const { role, me, logout, threads, buildings, units } = useStore()
|
||||
const navigate = useNavigate()
|
||||
const unread = threads.filter((t) =>
|
||||
role === 'tenant' ? t.unreadByTenant : t.unreadByAdmin,
|
||||
@@ -96,7 +96,7 @@ export default function AppLayout() {
|
||||
<div className="border-t border-white/10 p-4">
|
||||
<div className="mb-2 flex flex-wrap items-center gap-x-2 gap-y-1 px-2 text-xs text-slate-300/70">
|
||||
<Building2 className="h-3.5 w-3.5 shrink-0" />
|
||||
<span>3 Häuser · 50 Wohnungen</span>
|
||||
<span>{buildings.length} {buildings.length === 1 ? 'Haus' : 'Häuser'} · {units.length} {units.length === 1 ? 'Wohnung' : 'Wohnungen'}</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-2">
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user