Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TodoList
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sakilesh J
TodoList
Commits
f45dab26
Commit
f45dab26
authored
Jun 10, 2024
by
Sakilesh J
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unwantedtypes
parent
6df9de60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
Todo.tsx
pages/Todo.tsx
+1
-6
No files found.
pages/Todo.tsx
View file @
f45dab26
...
@@ -8,15 +8,10 @@ import FormComponent from "@/components/Top-Level/Form/FormComponent";
...
@@ -8,15 +8,10 @@ import FormComponent from "@/components/Top-Level/Form/FormComponent";
import
{
TodoListItems
}
from
"@/Types/todoTypes"
;
import
{
TodoListItems
}
from
"@/Types/todoTypes"
;
import
AddTask
,
{
UpdateTask
,
DeleteTask
}
from
"@/lib/TodoApi"
;
import
AddTask
,
{
UpdateTask
,
DeleteTask
}
from
"@/lib/TodoApi"
;
import
getall
from
"@/lib/getall"
;
import
getall
from
"@/lib/getall"
;
interface
StateTodo
{
data
?:
TodoListItems
[],
isError
:
boolean
;
isLoading
:
boolean
;
}
const
Todo
=
()
=>
{
const
Todo
=
()
=>
{
const
[
refresh
,
setrefresh
]
=
useState
(
false
)
const
[
refresh
,
setrefresh
]
=
useState
(
false
)
const
[
TodoList
,
setTodoList
]
=
useState
<
StateTodo
>
({
const
[
TodoList
,
setTodoList
]
=
useState
({
isError
:
false
,
isError
:
false
,
isLoading
:
true
,
isLoading
:
true
,
data
:
[]
data
:
[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment