mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-02 03:39:38 +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 { useEventListener, useOnClickOutside } from 'usehooks-ts';
|
||||
import { useQueryClient } from '@tanstack/react-query';
|
||||
import { useState, ElementRef, useRef } from 'react';
|
||||
import { useState, useRef } from 'react';
|
||||
import { useParams } from 'next/navigation';
|
||||
import { AlignLeft } from 'lucide-react';
|
||||
import { toast } from 'sonner';
|
||||
|
@ -26,8 +26,8 @@ export const Description = ({ data }: DescriptionProps) => {
|
|||
|
||||
const [isEditing, setIsEditing] = useState(false);
|
||||
|
||||
const textareaRef = useRef<ElementRef<'textarea'>>(null);
|
||||
const formRef = useRef<ElementRef<'form'>>(null);
|
||||
const textareaRef = useRef<HTMLTextAreaElement>(null);
|
||||
const formRef = useRef<HTMLFormElement>(document.createElement('form'));
|
||||
|
||||
const enaleEditing = () => {
|
||||
setIsEditing(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue