Remove unused sections
This commit is contained in:
parent
6c161843e5
commit
2506324cfd
@ -31,17 +31,21 @@ const HomePage = () => {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{sections &&
|
{sections &&
|
||||||
sections.map((section) => (
|
sections.map(
|
||||||
<div key={section} className="space-y-2">
|
(section) =>
|
||||||
<ProjectsHeading title={section} />
|
groupedTodos[section].filter((t) => t.status !== true).length !==
|
||||||
<TodoList
|
0 && (
|
||||||
todos={groupedTodos[section]}
|
<div key={section} className="space-y-2">
|
||||||
hideDone
|
<ProjectsHeading title={section} />
|
||||||
project={section}
|
<TodoList
|
||||||
hideProject
|
todos={groupedTodos[section]}
|
||||||
/>
|
hideDone
|
||||||
</div>
|
project={section}
|
||||||
))}
|
hideProject
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
)}
|
||||||
{data && data.length === 0 && (
|
{data && data.length === 0 && (
|
||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
<PageHeading title="You're done!" />
|
<PageHeading title="You're done!" />
|
||||||
|
Loading…
Reference in New Issue
Block a user