tweak(phone/dialer): Cleanup & type safety for state

Renamed some types to better represent their data
This commit is contained in:
Taso committed 2021-04-01 13:40:37 -04:00
1 parent a0c5f94514
commit e6deff23da
10 files changed
+46 -49

No files matched your search

+2 -9
View File
@@ -1,4 +1,4 @@
export interface CallProps {
export interface ActiveCall {
active: boolean;
accepted: boolean;
isTransmitter: boolean;
@@ -6,7 +6,7 @@ export interface CallProps {
receiver: string;
}
export interface ICall {
export interface CallHistoryItem {
id?: number;
identifier: string;
transmitter: string;
@@ -18,13 +18,6 @@ export interface ICall {
accepted: boolean;
}
export interface ICallDuration {
ms: number;
s: number;
m: number;
h: number;
}
export enum CallEvents {
INITIALIZE_CALL = 'npwd:beginCall',
START_CALL = 'npwd:startCall',