more formatting

This commit is contained in:
Christopher committed 2021-03-02 20:45:41 +01:00
1 parent 046447b0fb
commit f552c1212c
157 files changed
+635 -1579

No files matched your search

+2 -2
View File
@@ -17,7 +17,7 @@ export const useContacts = (): IUseContacts => {
const found = contacts.find((contact) => contact.number === number);
return found ? found.display : number;
},
[contacts]
[contacts],
);
const getContact = useCallback(
(id: number): Contact | null => {
@@ -25,7 +25,7 @@ export const useContacts = (): IUseContacts => {
if (contact.id === id) return contact;
}
},
[contacts]
[contacts],
);
return { contacts, getDisplayByNumber, getContact };
};
@@ -8,7 +8,7 @@ interface FilterdContactsProps {
export const useFilteredContacts = (): FilterdContactsProps => {
const [filteredContacts, setFilteredContacts] = useRecoilState(
contactsState.filterContacts
contactsState.filterContacts,
);
return { filteredContacts, setFilteredContacts };
};