v1.1: Rebrand Hinterstein Immobilien + echtes Auth-System
- Rebrand: Kunden-Logo, Joseph-Hinterstein-Portrait, Kontakt-Banner, Texte - Login-Pflicht auf /login (Route-Guard), Gruppen Verwaltung/Mieter - Mieter-Registrierung per einmaligem Registrierungscode - Benutzerverwaltung als 6. Modul (/benutzer, nur Verwaltung) - Demo-Zugänge mit Passwort 0815 (j.hinterstein, a.berger, m.wolf) - Mail-Server-API: Token-Auth (/send, X-Api-Token), Mail-Stack live auf Server - Store-Key hinterstein-mieterportal-v2, Doku (kimi.md, README) nachgeführt
This commit is contained in:
@@ -10,7 +10,7 @@ import {
|
||||
TableHeader,
|
||||
TableRow,
|
||||
} from '@/components/ui/table'
|
||||
import { useStore, DEMO_UNIT_ID } from '../store/store'
|
||||
import { useStore } from '../store/store'
|
||||
|
||||
const catIcon = (cat: string) => {
|
||||
switch (cat) {
|
||||
@@ -28,13 +28,13 @@ const catIcon = (cat: string) => {
|
||||
}
|
||||
|
||||
export default function Documents() {
|
||||
const { documents, role, units } = useStore()
|
||||
const { documents, role, units, meineEinheit } = useStore()
|
||||
const [query, setQuery] = useState('')
|
||||
|
||||
const rows = useMemo(() => {
|
||||
const base =
|
||||
role === 'tenant'
|
||||
? documents.filter((d) => d.unitId === DEMO_UNIT_ID || d.unitId === null)
|
||||
? documents.filter((d) => d.unitId === meineEinheit.id || d.unitId === null)
|
||||
: documents
|
||||
const q = query.trim().toLowerCase()
|
||||
return q
|
||||
|
||||
Reference in New Issue
Block a user