Skip to content

Commit 051ffac

Browse files
committed
Style editor loader.
1 parent 5e9844d commit 051ffac

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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+
}

src/rsg-components/Editor/EditorLoader.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React, { Component } from 'react';
2+
import EditorLoaderRenderer from 'rsg-components/Editor/EditorLoaderRenderer';
23

34
export 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} />;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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;

0 commit comments

Comments
 (0)