Skip to content

Commit 36f7de9

Browse files
committed
Add MoonLoader loading component
1 parent e8a77be commit 36f7de9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

frontend/src/app/(auth)/leetcode-dashboard/LeetcodeDashboardTable.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { HiOutlinePencil } from "react-icons/hi";
2424
import { FaRegTrashAlt } from "react-icons/fa";
2525
import { getLeetcodeDashboardData } from "@/api/leetcode-dashboard";
2626
import { QuestionMinified } from "@/types/find-match";
27+
import MoonLoader from "react-spinners/MoonLoader";
2728

2829
const Cell = ({
2930
className,
@@ -151,11 +152,10 @@ export function LeetcodeDashboardTable() {
151152
))
152153
) : (
153154
<TableRow>
154-
<TableCell
155-
colSpan={columns.length}
156-
className="h-24 text-center"
157-
>
158-
No results.
155+
<TableCell colSpan={columns.length}>
156+
<div className="w-full flex justify-center items-center">
157+
<MoonLoader color="#FFFFFF" size="30" />
158+
</div>
159159
</TableCell>
160160
</TableRow>
161161
)}

0 commit comments

Comments
 (0)