🐛 Fix loader behind files
This commit is contained in:
parent
1fa331e329
commit
f9511af1a0
@ -17,9 +17,11 @@ export default class FilePreview extends React.Component<IProps, IState> {
|
|||||||
if (this.props.fileName) type = this.props.fileName.split(".").pop();
|
if (this.props.fileName) type = this.props.fileName.split(".").pop();
|
||||||
return (
|
return (
|
||||||
<div className={classes["root"]}>
|
<div className={classes["root"]}>
|
||||||
<div className={classes["loader"]}>
|
{!this.props.href && (
|
||||||
<Loader />
|
<div className={classes["loader"]}>
|
||||||
</div>
|
<Loader />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
{this.props.href && (
|
{this.props.href && (
|
||||||
<>
|
<>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user