Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ export const EmployeeTasksList = ({

const allCompleted = completedCount === accordionItems.length;

if (allCompleted) {
return (
<div className="space-y-4">
return (
<div className="space-y-4">
{allCompleted ? (
<Card>
<CardContent>
<div className="flex flex-col items-center justify-center py-16 text-center">
Expand All @@ -191,32 +191,30 @@ export const EmployeeTasksList = ({
</div>
</CardContent>
</Card>
</div>
);
}

return (
<div className="space-y-4">
{/* Progress indicator */}
<div>
<div className="text-muted-foreground text-sm">
{completedCount} of {accordionItems.length} tasks completed
</div>
<div className="w-full bg-muted rounded-full h-2.5">
<div
className="bg-primary h-full rounded-full"
style={{ width: `${(completedCount / accordionItems.length) * 100}%` }}
></div>
</div>
</div>
) : (
<>
{/* Progress indicator */}
<div>
<div className="text-muted-foreground text-sm">
{completedCount} of {accordionItems.length} tasks completed
</div>
<div className="w-full bg-muted rounded-full h-2.5">
<div
className="bg-primary h-full rounded-full"
style={{ width: `${(completedCount / accordionItems.length) * 100}%` }}
></div>
</div>
</div>

<div className="space-y-3">
<Accordion>
{accordionItems.map((item, idx) => (
<div key={item.title ?? idx}>{item.content}</div>
))}
</Accordion>
</div>
<div className="space-y-3">
<Accordion>
{accordionItems.map((item, idx) => (
<div key={item.title ?? idx}>{item.content}</div>
))}
</Accordion>
</div>
</>
)}

{/* Company forms */}
{visiblePortalForms.length > 0 && (
Expand Down
Loading