Loop scheduler ve timer worker için hata yakalama ekle. qBit client'ta geçici ağ hatalarını tanıyarak login durumunu sıfırla. Scheduler hatalarında durum güncellemesi gönder ve timer worker crash önle.
28 lines
1010 B
TypeScript
28 lines
1010 B
TypeScript
import * as React from "react";
|
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
import clsx from "clsx";
|
|
|
|
export const ScrollArea = React.forwardRef<
|
|
React.ElementRef<typeof ScrollAreaPrimitive.Root>,
|
|
React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>
|
|
>(({ className, children, ...props }, ref) => (
|
|
<ScrollAreaPrimitive.Root
|
|
ref={ref}
|
|
className={clsx("relative overflow-hidden", className)}
|
|
{...props}
|
|
>
|
|
<ScrollAreaPrimitive.Viewport className="h-full w-full overflow-y-auto rounded-[inherit]">
|
|
{children}
|
|
</ScrollAreaPrimitive.Viewport>
|
|
<ScrollAreaPrimitive.Scrollbar
|
|
orientation="vertical"
|
|
className="flex w-2.5 touch-none select-none rounded-full bg-transparent p-0.5 opacity-100"
|
|
>
|
|
<ScrollAreaPrimitive.Thumb className="relative flex-1 rounded-full bg-slate-200" />
|
|
</ScrollAreaPrimitive.Scrollbar>
|
|
<ScrollAreaPrimitive.Corner />
|
|
</ScrollAreaPrimitive.Root>
|
|
));
|
|
|
|
ScrollArea.displayName = "ScrollArea";
|