tweak(dialer): Several fixes and improvements

Time has been changed to a relative format. Locale specifics are pending
merge of #168.

Several typos have been fixed where "DAILER" was referenced instead of
"DIALER"

A translation key was added for when a user has no call history.

The input box has been unlocked so users can use their keyboard directly
rather than using the dial pad.
This commit is contained in:
Taso authored and Taso committed 2021-03-17 10:26:52 -04:00
1 parent a6e8c769c0
commit f1f6a05981
10 files changed
+76 -39

No files matched your search

@@ -1,11 +1,7 @@
import { useRecoilValue } from 'recoil';
import { ICall } from '../../../../../typings/call';
import { dialState } from './state';
interface ICallUI {
history: ICall[];
}
export const useDialHistory = (): ICallUI[] => {
const history = useRecoilValue(dialState.history);
return history;
export const useDialHistory = () => {
return useRecoilValue<ICall[]>(dialState.history);
};
@@ -4,5 +4,5 @@ import { dialState } from './state';
export const useDialService = () => {
const setHistory = useSetRecoilState(dialState.history);
useNuiEvent('DAILER', 'setHistory', setHistory);
useNuiEvent('DIALER', 'setHistory', setHistory);
};