♻️ refactor(deps): Update

This commit is contained in:
web@ppanel
2024-12-13 23:42:23 +07:00
parent 37d408f6bd
commit 19837a1032
23 changed files with 2746 additions and 2333 deletions
@@ -10,7 +10,7 @@ import { cn } from '@shadcn/ui/lib/utils';
import { useQuery } from '@tanstack/react-query';
import { AnimatePresence, motion } from 'framer-motion';
import { useTranslations } from 'next-intl';
import { useEffect, useId, useRef, useState } from 'react';
import { RefObject, useEffect, useId, useRef, useState } from 'react';
export function DocumentButton({ items }: { items: API.Document[] }) {
const t = useTranslations('document');
@@ -46,7 +46,7 @@ export function DocumentButton({ items }: { items: API.Document[] }) {
return () => window.removeEventListener('keydown', onKeyDown);
}, [active]);
useOutsideClick(ref, () => setActive(null));
useOutsideClick(ref as RefObject<HTMLDivElement>, () => setActive(null));
return (
<>
@@ -9,7 +9,7 @@ import { cn } from '@shadcn/ui/lib/utils';
import { useQuery } from '@tanstack/react-query';
import { AnimatePresence, motion } from 'framer-motion';
import { useTranslations } from 'next-intl';
import { useEffect, useId, useRef, useState } from 'react';
import { RefObject, useEffect, useId, useRef, useState } from 'react';
interface Item {
path: string;
@@ -48,7 +48,7 @@ export function TutorialButton({ items }: { items: Item[] }) {
return () => window.removeEventListener('keydown', onKeyDown);
}, [active]);
useOutsideClick(ref, () => setActive(null));
useOutsideClick(ref as RefObject<HTMLDivElement>, () => setActive(null));
return (
<>
+1 -1
View File
@@ -70,7 +70,7 @@ export default function Page() {
}, 66);
}, [ticket?.follow?.length]);
const ref = useRef<ProListActions>();
const ref = useRef<ProListActions>(null);
const [create, setCreate] = useState<Partial<API.CreateUserTicketRequest & { open: boolean }>>();
return (