Fixes storybook for AudioCapture
This commit is contained in:
parent
99c95794af
commit
b5947e0ef1
7 changed files with 27 additions and 21 deletions
|
@ -14,21 +14,13 @@ import { stringToMIMEType } from '../../types/MIME';
|
|||
import type { BoundActionCreatorsMapObject } from '../../hooks/useBoundActions';
|
||||
import { useBoundActions } from '../../hooks/useBoundActions';
|
||||
import { getComposerStateForConversation } from './composer';
|
||||
|
||||
export enum ErrorDialogAudioRecorderType {
|
||||
Blur,
|
||||
ErrorRecording,
|
||||
Timeout,
|
||||
}
|
||||
import {
|
||||
ErrorDialogAudioRecorderType,
|
||||
RecordingState,
|
||||
} from '../../types/AudioRecorder';
|
||||
|
||||
// State
|
||||
|
||||
export enum RecordingState {
|
||||
Recording = 'recording',
|
||||
Initializing = 'initializing',
|
||||
Idle = 'idle',
|
||||
}
|
||||
|
||||
export type AudioPlayerStateType = ReadonlyDeep<{
|
||||
recordingState: RecordingState;
|
||||
errorDialogAudioRecorderType?: ErrorDialogAudioRecorderType;
|
||||
|
|
|
@ -34,7 +34,7 @@ import {
|
|||
REMOVE_PREVIEW as REMOVE_LINK_PREVIEW,
|
||||
} from './linkPreviews';
|
||||
import { LinkPreviewSourceType } from '../../types/LinkPreview';
|
||||
import { RecordingState } from './audioRecorder';
|
||||
import { RecordingState } from '../../types/AudioRecorder';
|
||||
import { SHOW_TOAST } from './toast';
|
||||
import { ToastType } from '../../types/Toast';
|
||||
import { SafetyNumberChangeSource } from '../../components/SafetyNumberChangeDialog';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue