Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 9b33e39

Browse files
committed
fix: pretty loading
1 parent 2894c15 commit 9b33e39

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/containers/JobEditor/index.js

+10
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ const View = ({
3838
mentionList,
3939
contentDomId,
4040
}) => {
41+
if (!editData.body) {
42+
return (
43+
<React.Fragment>
44+
<ArticleContentLoading />
45+
<br />
46+
<ArticleContentLoading />
47+
</React.Fragment>
48+
)
49+
}
50+
4151
if (curView === 'CREATE_VIEW' || curView === 'PREVIEW_VIEW') {
4252
return (
4353
<React.Fragment>

src/containers/PostEditor/index.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,13 @@ const View = ({
4949
contentDomId,
5050
}) => {
5151
if (!editData.body) {
52-
return <div>loading...</div>
52+
return (
53+
<React.Fragment>
54+
<ArticleContentLoading />
55+
<br />
56+
<ArticleContentLoading />
57+
</React.Fragment>
58+
)
5359
}
5460

5561
if (curView === 'CREATE_VIEW' || curView === 'PREVIEW_VIEW') {

0 commit comments

Comments
 (0)