fixed imports

This commit is contained in:
Fedor Katurov 2020-01-08 12:51:19 +07:00
parent 23c9e42bd5
commit 103097edbd
50 changed files with 260 additions and 229 deletions

View file

@ -1,4 +1,4 @@
import * as React from 'react';
import React, { createElement } from 'react';
import { MODES } from '$constants/modes';
import { RouterDialog } from '$components/dialogs/RouterDialog';
@ -52,7 +52,7 @@ const DIALOG_CONTENTS: { [x: string]: any } = {
export const Component = (props: Props) =>
props.mode && DIALOG_CONTENTS[props.mode]
? React.createElement(DIALOG_CONTENTS[props.mode])
? createElement(DIALOG_CONTENTS[props.mode])
: null;
export const EditorDialog = connect(