mirror of
https://github.com/Steffo99/todocolors.git
synced 2024-11-22 16:24:19 +00:00
Rename TaskDiv
to TaskDisplay
This commit is contained in:
parent
b11aed5ba9
commit
de28e68fc5
3 changed files with 5 additions and 4 deletions
|
@ -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 {TaskGroup} from "@/app/board/[board]/useBoardTaskArranger"
|
||||||
import style from "./TaskGroupColumn.module.css"
|
import style from "./TaskGroupColumn.module.css"
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ export function BoardColumn({taskGroup}: {taskGroup: TaskGroup}) {
|
||||||
<h3>
|
<h3>
|
||||||
{taskGroup.name}
|
{taskGroup.name}
|
||||||
</h3>
|
</h3>
|
||||||
{taskGroup.tasks.map(task => <TaskDiv task={task}/>)}
|
{taskGroup.tasks.map(task => <TaskDisplay task={task}/>)}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,10 +4,11 @@ import {useManagedBoard} from "@/app/board/[board]/BoardManager"
|
||||||
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"
|
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"
|
||||||
import {useCallback, useState, MouseEvent} from "react"
|
import {useCallback, useState, MouseEvent} from "react"
|
||||||
import {faTrashCanArrowUp} from "@fortawesome/free-solid-svg-icons"
|
import {faTrashCanArrowUp} from "@fortawesome/free-solid-svg-icons"
|
||||||
import style from "./TaskDiv.module.css"
|
import style from "./TaskDisplay.module.css"
|
||||||
import cn from "classnames"
|
import cn from "classnames"
|
||||||
|
|
||||||
export function TaskDiv({task}: {task: TaskWithId}) {
|
|
||||||
|
export function TaskDisplay({task}: {task: TaskWithId}) {
|
||||||
const {send} = useManagedBoard()
|
const {send} = useManagedBoard()
|
||||||
const [isDisplayingActions, setDisplayingActions] = useState<boolean>(false)
|
const [isDisplayingActions, setDisplayingActions] = useState<boolean>(false)
|
||||||
|
|
Loading…
Reference in a new issue