From 4ed9538a93a50ebb73e4eaf94b63055b30f6570c Mon Sep 17 00:00:00 2001 From: lubiana Date: Fri, 25 Jul 2025 16:40:33 +0200 Subject: [PATCH] push --- .../src/components/DateConstraintManager.tsx | 2 +- frontend/src/pages/Checklist.tsx | 16 ++-------------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/frontend/src/components/DateConstraintManager.tsx b/frontend/src/components/DateConstraintManager.tsx index 46618fd..ba60a1d 100644 --- a/frontend/src/components/DateConstraintManager.tsx +++ b/frontend/src/components/DateConstraintManager.tsx @@ -1,5 +1,5 @@ import React, { useState } from 'react' -import { ChecklistItem } from '../types' +import type { ChecklistItem } from '../types' interface DateConstraintManagerProps { item: ChecklistItem diff --git a/frontend/src/pages/Checklist.tsx b/frontend/src/pages/Checklist.tsx index 7877bbe..876fdf8 100644 --- a/frontend/src/pages/Checklist.tsx +++ b/frontend/src/pages/Checklist.tsx @@ -215,19 +215,7 @@ export default function Checklist() { } } - const renderItems = (treeItems: ChecklistItemType[], allItems: ChecklistItemType[]) => { - return treeItems.map(item => ( - - )) - } + const renderGroupedItems = (allItems: ChecklistItemType[]) => { const itemTree = buildItemTree(allItems) @@ -348,7 +336,7 @@ export default function Checklist() { ) } - const itemTree = buildItemTree(items) + return (