text preview show download while validating

This commit is contained in:
Spencer Woo 2022-02-24 14:22:48 +08:00 committed by GitHub
parent 9e50a024ee
commit 439bef742c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,9 +22,14 @@ const TextPreview = ({ file }) => {
if (validating) {
return (
<PreviewContainer>
<Loading loadingText={t('Loading file content...')} />
</PreviewContainer>
<>
<PreviewContainer>
<Loading loadingText={t('Loading file content...')} />
</PreviewContainer>
<DownloadBtnContainer>
<DownloadButtonGroup />
</DownloadBtnContainer>
</>
)
}