mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-04-30 18:59:37 +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
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import { useRef, ElementRef, useState } from 'react';
|
||||
import { useRef, useState } from 'react';
|
||||
import { useQueryClient } from '@tanstack/react-query';
|
||||
import { useParams } from 'next/navigation';
|
||||
import { Layout } from 'lucide-react';
|
||||
|
@ -38,7 +38,7 @@ export const Header = ({ data }: HeaderProps) => {
|
|||
},
|
||||
});
|
||||
|
||||
const inputRef = useRef<ElementRef<'input'>>(null);
|
||||
const inputRef = useRef<HTMLInputElement>(null);
|
||||
|
||||
const [title, setTitle] = useState(data.title);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue