mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
feat(phone/dialer): add contacts from dialer history
This commit is contained in:
1 parent
51fb261e8a
commit
d4fbdc8e0c
5 files changed
+70
-12
No files matched your search
@@ -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;
|
||||
};
|
||||
Reference in new issue
Block a user