diff --git a/src/components/Logbook.tsx b/src/components/Logbook.tsx index df91af1..05ac82d 100644 --- a/src/components/Logbook.tsx +++ b/src/components/Logbook.tsx @@ -20,7 +20,7 @@ interface LogbookProps { export default function Logbook({ logs, devices, users, currentUser, onAddLog }: LogbookProps) { const [searchTerm, setSearchTerm] = useState(''); - const [typeFilter, setTypeFilter] = useState('non-system'); + const [typeFilter, setTypeFilter] = useState('all'); // Custom Maintenance Log state const [showAddLog, setShowAddLog] = useState(false); @@ -35,7 +35,6 @@ export default function Logbook({ logs, devices, users, currentUser, onAddLog }: const matchesSearch = log.message.toLowerCase().includes(searchTerm.toLowerCase()); const matchesType = typeFilter === 'all' ? true : - typeFilter === 'non-system' ? log.type !== 'system' : log.type === typeFilter; return matchesSearch && matchesType; }); @@ -126,7 +125,7 @@ export default function Logbook({ logs, devices, users, currentUser, onAddLog }:
{[ - { key: 'non-system', label: 'All' }, + { key: 'all', label: 'All' }, { key: 'booking', label: 'Booking' }, { key: 'maintenance',label: 'Maintenance' }, { key: 'status', label: 'Status' },