task detail attachment form
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user