carnet panel contact
This commit is contained in:
parent
e4a93b8443
commit
a654994b1f
@ -29,11 +29,14 @@ export const ContactsView: React.FC<ContactsViewProps> = ({
|
||||
}) => {
|
||||
const [searchQuery, setSearchQuery] = useState('');
|
||||
|
||||
const filteredContacts = contacts.filter(contact =>
|
||||
contact.fullName.toLowerCase().includes(searchQuery.toLowerCase()) ||
|
||||
contact.email.toLowerCase().includes(searchQuery.toLowerCase()) ||
|
||||
contact.organization?.toLowerCase().includes(searchQuery.toLowerCase())
|
||||
);
|
||||
const filteredContacts = contacts.filter(contact => {
|
||||
const searchLower = searchQuery.toLowerCase();
|
||||
return (
|
||||
(contact.fullName?.toLowerCase() || '').includes(searchLower) ||
|
||||
(contact.email?.toLowerCase() || '').includes(searchLower) ||
|
||||
(contact.organization?.toLowerCase() || '').includes(searchLower)
|
||||
);
|
||||
});
|
||||
|
||||
return (
|
||||
<div className="flex flex-col h-full bg-carnet-bg border-r border-carnet-border">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user