task detail attachment form

This commit is contained in:
hamid zarghami
2026-06-17 15:34:47 +03:30
parent 707908fe03
commit 92033fb94c
6 changed files with 130 additions and 4 deletions
@@ -23,9 +23,10 @@ type Props = {
labelsPopover?: ReactNode;
usersPopover?: ReactNode;
checklistPopover?: ReactNode;
attachmentPopover?: ReactNode;
};
const TaskDetailActionBar: FC<Props> = ({ activeTab, onTabChange, labelsPopover, usersPopover, checklistPopover }) => {
const TaskDetailActionBar: FC<Props> = ({ activeTab, onTabChange, labelsPopover, usersPopover, checklistPopover, attachmentPopover }) => {
const { t } = useTranslation("global");
return (
@@ -44,11 +45,17 @@ const TaskDetailActionBar: FC<Props> = ({ activeTab, onTabChange, labelsPopover,
</button>
);
if (id === "labels" || id === "users" || id === "checklist") {
if (id === "labels" || id === "users" || id === "checklist" || id === "attachment") {
return (
<div key={id} className="relative">
{button}
{id === "labels" ? labelsPopover : id === "users" ? usersPopover : checklistPopover}
{id === "labels"
? labelsPopover
: id === "users"
? usersPopover
: id === "checklist"
? checklistPopover
: attachmentPopover}
</div>
);
}