Commit f45dab26 by Sakilesh J

remove unwantedtypes

parent 6df9de60
......@@ -8,15 +8,10 @@ import FormComponent from "@/components/Top-Level/Form/FormComponent";
import { TodoListItems } from "@/Types/todoTypes";
import AddTask, { UpdateTask, DeleteTask } from "@/lib/TodoApi";
import getall from "@/lib/getall";
interface StateTodo {
data?: TodoListItems[],
isError: boolean;
isLoading: boolean;
}
const Todo = () => {
const [refresh, setrefresh] = useState(false)
const [TodoList, setTodoList] = useState<StateTodo>({
const [TodoList, setTodoList] = useState({
isError: false,
isLoading: true,
data: []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment