Create check list
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user