push
This commit is contained in:
parent
e29c2a94ef
commit
4ed9538a93
2 changed files with 3 additions and 15 deletions
|
@ -1,5 +1,5 @@
|
|||
import React, { useState } from 'react'
|
||||
import { ChecklistItem } from '../types'
|
||||
import type { ChecklistItem } from '../types'
|
||||
|
||||
interface DateConstraintManagerProps {
|
||||
item: ChecklistItem
|
||||
|
|
|
@ -215,19 +215,7 @@ export default function Checklist() {
|
|||
}
|
||||
}
|
||||
|
||||
const renderItems = (treeItems: ChecklistItemType[], allItems: ChecklistItemType[]) => {
|
||||
return treeItems.map(item => (
|
||||
<ChecklistItem
|
||||
key={item.id}
|
||||
item={item}
|
||||
onUpdate={updateItem}
|
||||
onDelete={deleteItem}
|
||||
onLock={lockItem}
|
||||
children={item.children || []}
|
||||
allItems={allItems}
|
||||
/>
|
||||
))
|
||||
}
|
||||
|
||||
|
||||
const renderGroupedItems = (allItems: ChecklistItemType[]) => {
|
||||
const itemTree = buildItemTree(allItems)
|
||||
|
@ -348,7 +336,7 @@ export default function Checklist() {
|
|||
)
|
||||
}
|
||||
|
||||
const itemTree = buildItemTree(items)
|
||||
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-gray-50 dark:bg-gray-900">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue