From ea7ea5e8f630b45adc5c48b7e345704d271f7ef5 Mon Sep 17 00:00:00 2001 From: Josh Perez Date: Tue, 29 Sep 2020 14:27:09 -0400 Subject: [PATCH] Storybook fix --- ts/types/Calling.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ts/types/Calling.ts b/ts/types/Calling.ts index 6192e83a7..729466400 100644 --- a/ts/types/Calling.ts +++ b/ts/types/Calling.ts @@ -1,4 +1,11 @@ -import { CallState } from 'ringrtc'; +// Must be kept in sync with RingRTC.CallState +export enum CallState { + Prering = 'init', + Ringing = 'ringing', + Accepted = 'connected', + Reconnecting = 'connecting', + Ended = 'ended', +} // Must be kept in sync with RingRTC.AudioDevice export interface AudioDevice { @@ -39,5 +46,3 @@ export type ChangeIODevicePayloadType = | { type: CallingDeviceType.CAMERA; selectedDevice: string } | { type: CallingDeviceType.MICROPHONE; selectedDevice: AudioDevice } | { type: CallingDeviceType.SPEAKER; selectedDevice: AudioDevice }; - -export { CallState };