1
Fork 0
mirror of https://github.com/Steffo99/todocolors.git synced 2024-11-22 08:14:18 +00:00

Rename TaskDiv to TaskDisplay

This commit is contained in:
Steffo 2023-08-04 02:10:56 +02:00
parent b11aed5ba9
commit de28e68fc5
Signed by: steffo
GPG key ID: 2A24051445686895
3 changed files with 5 additions and 4 deletions

View file

@ -1,4 +1,4 @@
import {TaskDiv} from "@/app/board/[board]/TaskDiv"
import {TaskDisplay} from "@/app/board/[board]/TaskDisplay"
import {TaskGroup} from "@/app/board/[board]/useBoardTaskArranger"
import style from "./TaskGroupColumn.module.css"
@ -9,7 +9,7 @@ export function BoardColumn({taskGroup}: {taskGroup: TaskGroup}) {
<h3>
{taskGroup.name}
</h3>
{taskGroup.tasks.map(task => <TaskDiv task={task}/>)}
{taskGroup.tasks.map(task => <TaskDisplay task={task}/>)}
</div>
)
}

View file

@ -4,10 +4,11 @@ import {useManagedBoard} from "@/app/board/[board]/BoardManager"
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"
import {useCallback, useState, MouseEvent} from "react"
import {faTrashCanArrowUp} from "@fortawesome/free-solid-svg-icons"
import style from "./TaskDiv.module.css"
import style from "./TaskDisplay.module.css"
import cn from "classnames"
export function TaskDiv({task}: {task: TaskWithId}) {
export function TaskDisplay({task}: {task: TaskWithId}) {
const {send} = useManagedBoard()
const [isDisplayingActions, setDisplayingActions] = useState<boolean>(false)