added payment history, setting pages

This commit is contained in:
Jelaletdin12
2026-09-30 20:36:17 +05:00
parent 1c0cbf1023
commit 1ebc133d1c
35 changed files with 1626 additions and 1273 deletions

View File

@@ -26,6 +26,7 @@ export interface InfiniteSelectProps {
onLoadMore?: () => void;
searchValue?: string;
onSearchChange?: (value: string) => void;
onOpenChange?: (open: boolean) => void;
}
/**
@@ -51,6 +52,7 @@ export function InfiniteSelect({
onLoadMore,
searchValue,
onSearchChange,
onOpenChange,
}: InfiniteSelectProps) {
const [open, setOpen] = useState(false);
const containerRef = useRef<HTMLDivElement>(null);
@@ -128,7 +130,10 @@ export function InfiniteSelect({
<PopoverPrimitive.Root
open={open}
onOpenChange={(next) => {
if (!disabled) setOpen(next);
if (!disabled) {
setOpen(next);
onOpenChange?.(next);
}
}}
>
<PopoverPrimitive.Trigger asChild>