feat(don): add top donor widget
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -66,6 +66,7 @@ export function ComboBox({
|
||||
</CommandItem>
|
||||
),
|
||||
})),
|
||||
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
||||
[data],
|
||||
);
|
||||
const queryLower = query.toLowerCase();
|
||||
|
||||
@@ -224,6 +224,7 @@ export default function Component({
|
||||
setZoom(1);
|
||||
}
|
||||
previousValueRef.current = value;
|
||||
// oxlint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [value]);
|
||||
|
||||
return (
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// oxlint-disable react-hooks/exhaustive-deps
|
||||
"use client";
|
||||
|
||||
import * as React from "react";
|
||||
|
||||
@@ -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,
|
||||
)}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user