feat(ui): improve error handling on categories page

This commit is contained in:
shafin-r
2025-10-06 18:14:00 +06:00
parent 108d34988d
commit 351c8eab48
2 changed files with 34 additions and 1 deletions

View File

@ -121,11 +121,16 @@ export default function MockScreen() {
</button>
</div>
))
) : (
) : refreshing ? (
<div className="flex flex-col items-center justify-center">
<div className="animate-spin rounded-full h-12 w-12 border-b-2 border-blue-500 mb-4"></div>
<p className="text-xl font-medium text-center">Loading...</p>
</div>
) : (
<DestructibleAlert
text="There aren't any tests available for you. Check back later?"
variant="warning"
/>
)}
</div>
<div className="flex justify-center mt-4">