manage users

This commit is contained in:
hamid zarghami
2026-06-17 10:40:59 +03:30
parent a03a147d12
commit 908f5e72ed
9 changed files with 214 additions and 109 deletions
@@ -21,9 +21,10 @@ type Props = {
activeTab: TaskDetailTab | null;
onTabChange: (tab: TaskDetailTab) => void;
labelsPopover?: ReactNode;
usersPopover?: ReactNode;
};
const TaskDetailActionBar: FC<Props> = ({ activeTab, onTabChange, labelsPopover }) => {
const TaskDetailActionBar: FC<Props> = ({ activeTab, onTabChange, labelsPopover, usersPopover }) => {
const { t } = useTranslation("global");
return (
@@ -42,11 +43,11 @@ const TaskDetailActionBar: FC<Props> = ({ activeTab, onTabChange, labelsPopover
</button>
);
if (id === "labels") {
if (id === "labels" || id === "users") {
return (
<div key={id} className="relative">
{button}
{labelsPopover}
{id === "labels" ? labelsPopover : usersPopover}
</div>
);
}