working typescript version

This commit is contained in:
erik-sn committed 2020-10-07 12:19:55 -04:00
1 parent 581d6011e0
commit cff746aa38
119 files changed
+247 -189

No files matched your search

@@ -0,0 +1,24 @@
import { useRecoilState, atom } from "recoil";
const dialerHistoryState = atom({
key: "dialerHistory",
default: [
{
id: 0,
caller: "Kidz",
phoneNumber: "000-1111",
type: "incoming",
},
{
id: 1,
caller: "ROCKY",
phoneNumber: "000-1112",
type: "outgoing",
},
],
});
export const useDialerHistory = () => {
const [history, setHistory] = useRecoilState(dialerHistoryState);
return { history, setHistory };
};