feat(phone/dialer): add contacts from dialer history

This commit is contained in:
Christopher committed 2021-02-23 23:19:29 +01:00
1 parent 51fb261e8a
commit d4fbdc8e0c
5 files changed
+70 -12

No files matched your search

+1 -1
View File
@@ -3,6 +3,6 @@ import { atom } from 'recoil';
export const dialState = {
history: atom({
key: 'dialHistory',
default: null,
default: [],
}),
};
@@ -5,7 +5,7 @@ interface ICallUI {
history: ICall[];
}
export const useDialHistory = (): ICallUI => {
export const useDialHistory = (): ICallUI[] => {
const history = useRecoilValue(dialState.history);
return history;
};