Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit9b33e39

Browse files
committed
fix: pretty loading
1 parent2894c15 commit9b33e39

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

‎src/containers/JobEditor/index.js‎

Lines changed: 10 additions & 0 deletions
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‎

Lines changed: 7 additions & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp