Skip to content

Commit

Permalink
refactor: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
eoaksnes committed Nov 18, 2022
1 parent 357f1eb commit 4413603
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions web/src/features/todos/todo-list/TodoItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import { undo, done, remove_outlined } from '@equinor/eds-icons'
import { TodoItem } from '../../../api/generated'

const TodoItemElement = (props: {
const TodoItemCard = (props: {
todo: TodoItem
onToggle: (id: string) => void
onRemove: (id: string) => void
Expand Down Expand Up @@ -49,4 +49,4 @@ const TodoItemElement = (props: {
)
}

export default TodoItemElement
export default TodoItemCard
4 changes: 2 additions & 2 deletions web/src/features/todos/todo-list/TodoList.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import useTodos from '../../../hooks/useTodos'
import { FormEventHandler, useState } from 'react'
import { Button, Input, Progress } from '@equinor/eds-core-react'
import TodoItemElement from './TodoItem'
import TodoItemCard from './TodoItem'
import { TodoItem } from '../../../api/generated'
import {
StyledTodoList,
Expand Down Expand Up @@ -49,7 +49,7 @@ const TodoList = () => {
<StyledTodoList>
<AddItem onAddItem={addItem} />
{todos?.map((todo: TodoItem) => (
<TodoItemElement
<TodoItemCard
key={todo.id}
onToggle={toggleItem}
onRemove={removeItem}
Expand Down

0 comments on commit 4413603

Please sign in to comment.