feat(TaskDetails): clicking the '+' button now opens label manager

This commit is contained in:
Jordan Knott 2021-01-06 20:12:46 -06:00
parent 8b22d33dad
commit ceaa49c5a1

View File

@ -294,6 +294,7 @@ const TaskDetails: React.FC<TaskDetailsProps> = ({
const $addMemberBtn = useRef<HTMLDivElement>(null); const $addMemberBtn = useRef<HTMLDivElement>(null);
const $dueDateBtn = useRef<HTMLDivElement>(null); const $dueDateBtn = useRef<HTMLDivElement>(null);
const $detailsTitle = useRef<HTMLTextAreaElement>(null); const $detailsTitle = useRef<HTMLTextAreaElement>(null);
const $addLabel = useRef<HTMLDivElement>(null);
const activityStream: Array<{ id: string; data: { time: string; type: 'comment' | 'activity' } }> = []; const activityStream: Array<{ id: string; data: { time: string; type: 'comment' | 'activity' } }> = [];
@ -474,7 +475,7 @@ const TaskDetails: React.FC<TaskDetailsProps> = ({
/> />
); );
})} })}
<TaskDetailsAddLabelIcon> <TaskDetailsAddLabelIcon ref={$addLabel} onClick={() => onOpenAddLabelPopup(task, $addLabel)}>
<Plus width={12} height={12} /> <Plus width={12} height={12} />
</TaskDetailsAddLabelIcon> </TaskDetailsAddLabelIcon>
</MetaDetailContent> </MetaDetailContent>