📱 feat: Add loading to mobile file list component.
This commit is contained in:
parent
a0b14ace3c
commit
913ee64b5c
1 changed files with 10 additions and 1 deletions
|
|
@ -196,7 +196,16 @@ export function FileList({ accountId, chatId }: FileListProps) {
|
|||
/>
|
||||
))}
|
||||
</div>
|
||||
<div ref={observerTarget} className="h-4" />
|
||||
<div ref={observerTarget} className="h-4">
|
||||
{isLoading && (
|
||||
<div className="flex items-center justify-center">
|
||||
<LoaderPinwheel
|
||||
className="h-8 w-8 animate-spin"
|
||||
style={{ strokeWidth: "0.8px" }}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue