File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed
src/rsg-components/Editor Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 1+ .root {
2+ composes : font from "../../styles/common.css" ;
3+ composes : light code-bg from "../../styles/colors.css" ;
4+ padding : 7px 16px 10px ;
5+ font-size : 12px ;
6+ }
Original file line number Diff line number Diff line change 11import React , { Component } from 'react' ;
2+ import EditorLoaderRenderer from 'rsg-components/Editor/EditorLoaderRenderer' ;
23
34export default class EditorLoader extends Component {
45 constructor ( props ) {
@@ -19,7 +20,7 @@ export default class EditorLoader extends Component {
1920 render ( ) {
2021 const Editor = this . state . editor ;
2122 if ( ! Editor ) {
22- return < div > Loading... </ div > ;
23+ return < EditorLoaderRenderer / >;
2324 }
2425
2526 return < Editor { ...this . props } /> ;
Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+
3+ import s from './EditorLoader.css' ;
4+
5+ const EditorRenderer = ( ) => (
6+ < div className = { s . root } >
7+ Loading…
8+ </ div >
9+ ) ;
10+
11+ export default EditorRenderer ;
You can’t perform that action at this time.
0 commit comments