feat(don): add top donor widget

This commit is contained in:
2026-06-10 01:36:54 +07:00 Unverified
parent 652b83c801
commit 85aaf6487c
28 changed files with 222 additions and 42 deletions
+3 -2
View File
@@ -2,9 +2,10 @@
import { Button } from "@/components/ui/button";
import { Spinner } from "@/components/ui/spinner";
import { MaybePromise } from "bun";
import type { MaybePromise } from "bun";
import { Check } from "lucide-react";
import { ComponentProps, ReactNode, useEffect, useState } from "react";
import type { ComponentProps, ReactNode} from "react";
import { useEffect, useState } from "react";
import { toast } from "sonner";
export function ActionButton({
+1
View File
@@ -146,6 +146,7 @@ export function CdnChooser({
if (!file) return setValue("");
setMeta(file);
})();
// oxlint-disable-next-line react-hooks/exhaustive-deps
}, [externalValue]);
async function choose() {
+1
View File
@@ -66,6 +66,7 @@ export function ComboBox({
</CommandItem>
),
})),
// oxlint-disable-next-line react-hooks/exhaustive-deps
[data],
);
const queryLower = query.toLowerCase();
+1
View File
@@ -224,6 +224,7 @@ export default function Component({
setZoom(1);
}
previousValueRef.current = value;
// oxlint-disable-next-line react-hooks/exhaustive-deps
}, [value]);
return (
+1
View File
@@ -1,3 +1,4 @@
// oxlint-disable react-hooks/exhaustive-deps
"use client";
import * as React from "react";
+1 -1
View File
@@ -173,7 +173,7 @@ function ChartTooltipContent({
return (
<div
className={cn(
"border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",
"border-border/50 bg-background grid min-w-32 items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",
className,
)}
>