Add phone service, rename phone app to dialer, etc improvements

This commit is contained in:
J Francisco Rader committed 2020-08-25 21:13:01 -03:00
1 parent bf2e7fa295
commit b2e0cba844
24 files changed
+311 -255

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 };
};