working typescript compiling and fixing linting issues

This commit is contained in:
erik-sn committed 2020-10-11 13:59:25 -04:00
1 parent b1babd88c2
commit 3273d192c9
49 files changed
+271 -110

No files matched your search

+11 -1
View File
@@ -1,7 +1,17 @@
import { useRecoilValue } from "recoil";
import { contactsState } from "./state";
export const useContacts = () => {
interface Contact {
id: string;
display: string;
number: string;
}
interface IUseContacts {
contacts: Contact[];
}
export const useContacts = (): IUseContacts => {
const contacts = useRecoilValue(contactsState.contacts);
return { contacts };
};