feat: add skeleton loader to file explorer

This commit is contained in:
Hamzat Victor
2024-10-14 12:06:54 +01:00
parent 33fc082217
commit fa5d1e9a57
3 changed files with 159 additions and 149 deletions

View File

@ -84,8 +84,10 @@ export default function Loading({
</div>
</div>
<div className="w-full mt-1 flex flex-col">
<div className="w-full flex justify-center">
<Loader2 className="w-4 h-4 animate-spin" />
<div className="w-full flex flex-col justify-center">
{new Array(6).fill(0).map((_, i) => (
<Skeleton key={i} className="h-[1.625rem] mb-0.5 rounded-sm" />
))}
</div>
</div>
</div>