Skip to content

Commit

Permalink
Use shared Spinner component in Browse page
Browse files Browse the repository at this point in the history
  • Loading branch information
ivntsng committed Nov 8, 2024
1 parent 7c03981 commit 868a9c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/components/pages/Browse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { components, paths } from "@/gen/api";
import { useAlertQueue } from "@/hooks/useAlertQueue";
import { useAuthentication } from "@/hooks/useAuth";
import { useDebounce } from "@uidotdev/usehooks";
import Spinner from "@/components/ui/Spinner";

type SortOption = components["schemas"]["SortOption"];

Expand Down Expand Up @@ -179,7 +180,7 @@ const Browse = () => {
<div ref={observerTarget} className="py-8 text-center">
{isLoading && (
<div className="flex items-center justify-center gap-2">
<div className="animate-spin rounded-full h-6 w-6 border-b-2 border-gray-12"></div>
<Spinner />
</div>
)}
</div>
Expand Down

0 comments on commit 868a9c1

Please sign in to comment.