fix(loader): Fix loader position
This commit is contained in:
committed by
mrugesh mohapatra
parent
1b3f350821
commit
a0d5841560
@ -138,7 +138,11 @@ class Featured extends Component {
|
||||
featuredList
|
||||
} = this.state;
|
||||
if (pending || !complete) {
|
||||
return <Loader />;
|
||||
return (
|
||||
<div className='full-size' style={{ position: 'fixed', left: 0 }}>
|
||||
<Loader />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
if (complete && errored) {
|
||||
|
@ -162,7 +162,11 @@ class ShowArticle extends Component {
|
||||
currentArticle
|
||||
} = this.state;
|
||||
if (pending || !complete) {
|
||||
return <Loader />;
|
||||
return (
|
||||
<div className='full-size' style={{ position: 'fixed', left: 0 }}>
|
||||
<Loader />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
if (complete && errored) {
|
||||
|
Reference in New Issue
Block a user