diff --git a/components/FileListing.tsx b/components/FileListing.tsx index 50a4b14..5719dff 100644 --- a/components/FileListing.tsx +++ b/components/FileListing.tsx @@ -16,7 +16,7 @@ import { getBaseUrl, treeList, downloadMultipleFiles, useProtectedSWRInfinite, s import { VideoPreview } from './previews/VideoPreview' import { AudioPreview } from './previews/AudioPreview' -import Loading from './Loading' +import Loading, { LoadingIcon } from './Loading' import FourOhFour from './FourOhFour' import Auth from './Auth' import TextPreview from './previews/TextPreview' @@ -144,6 +144,22 @@ const Checkbox: FunctionComponent<{ ) } +const Downloading: FunctionComponent<{ title: string }> = ({ title }) => { + return ( + + + + ) +} + const FileListing: FunctionComponent<{ query?: ParsedUrlQuery }> = ({ query }) => { const [imageViewerVisible, setImageViewerVisibility] = useState(false) const [activeImageIdx, setActiveImageIdx] = useState(0) @@ -316,23 +332,7 @@ const FileListing: FunctionComponent<{ query?: ParsedUrlQuery }> = ({ query }) = title={'Select files'} /> {totalGenerating ? ( - - - - - - + ) : (