I really hope I didnt fuck anything up now

This commit is contained in:
chip committed 2020-08-23 20:08:08 +02:00
1 parent ad20755608
commit ec37fcde46
67 files changed

No files matched your search

@@ -0,0 +1,22 @@
import { useRecoilState, atom } from "recoil";
const contactListState = atom({
key: "contactList",
default: [
{
id: 0,
display: "Test Contact",
phoneNumber: "000-1111",
},
{
id: 1,
display: "Test Contact 2",
phoneNumber: "000-1112",
},
],
});
export const useContacts = () => {
const [contactList, setContactList] = useRecoilState(contactListState);
return { contactList, setContactList };
};