Create check list

This commit is contained in:
hamid zarghami
2026-06-17 10:57:52 +03:30
parent 908f5e72ed
commit c62e958e91
8 changed files with 162 additions and 60 deletions
@@ -22,9 +22,10 @@ type Props = {
onTabChange: (tab: TaskDetailTab) => void;
labelsPopover?: ReactNode;
usersPopover?: ReactNode;
checklistPopover?: ReactNode;
};
const TaskDetailActionBar: FC<Props> = ({ activeTab, onTabChange, labelsPopover, usersPopover }) => {
const TaskDetailActionBar: FC<Props> = ({ activeTab, onTabChange, labelsPopover, usersPopover, checklistPopover }) => {
const { t } = useTranslation("global");
return (
@@ -43,11 +44,11 @@ const TaskDetailActionBar: FC<Props> = ({ activeTab, onTabChange, labelsPopover,
</button>
);
if (id === "labels" || id === "users") {
if (id === "labels" || id === "users" || id === "checklist") {
return (
<div key={id} className="relative">
{button}
{id === "labels" ? labelsPopover : usersPopover}
{id === "labels" ? labelsPopover : id === "users" ? usersPopover : checklistPopover}
</div>
);
}