Skip to content

Commit 0a5640f

Browse files
lbogdanCompuIves
authored andcommitted
CodeMirror: set Loadable.LoadingComponent to components/Loading instead of div. (codesandbox#181)
1 parent 3ee2bf3 commit 0a5640f

File tree

1 file changed

+2
-1
lines changed
  • src/app/components/sandbox/CodeEditor

1 file changed

+2
-1
lines changed

src/app/components/sandbox/CodeEditor/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
22
import Loadable from 'react-loadable';
3+
import Loading from 'app/components/Loading';
34
import { Preferences } from 'common/types';
45

56
import Monaco from './Monaco';
@@ -10,7 +11,7 @@ type Props = {
1011

1112
const CodeMirror = Loadable({
1213
loader: () => import('./CodeMirror'),
13-
LoadingComponent: 'div',
14+
LoadingComponent: Loading,
1415
});
1516

1617
export default (props: Props) => {

0 commit comments

Comments
 (0)