mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-01 03:09:34 +00:00
Fixed Type Errors and Replaced Most Cases of ElementRef with Modern Alternitives
This commit is contained in:
parent
b44c2e0f6e
commit
e29f7bf253
11 changed files with 45 additions and 1958 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
import { X } from 'lucide-react';
|
||||
import { toast } from 'sonner';
|
||||
import { ElementRef, useRef } from 'react';
|
||||
import { useRef } from 'react';
|
||||
import { useRouter } from 'next/navigation';
|
||||
|
||||
import {
|
||||
|
@ -36,7 +36,7 @@ export const FormPopover = ({
|
|||
}: FormPopoverProps) => {
|
||||
const proModal = useProModal();
|
||||
const router = useRouter();
|
||||
const closeRef = useRef<ElementRef<'button'>>(null);
|
||||
const closeRef = useRef<HTMLButtonElement>(null);
|
||||
|
||||
const { execute, fieldErrors } = useAction(createBoard, {
|
||||
onSuccess: (data) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue