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
+8 -3
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>
</>
)
}