mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 14:38:45 +00:00
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.
12 lines
253 B
TypeScript
12 lines
253 B
TypeScript
import { createContext } from 'react';
|
|
|
|
export interface IDialInputCtx {
|
|
inputVal: string;
|
|
add: (char: string | number) => void;
|
|
removeOne: () => void;
|
|
clear: () => void;
|
|
set: (val) => void;
|
|
}
|
|
|
|
export const DialInputCtx = createContext(null);
|