fix: kanban assignees tooltip (#332)

This commit is contained in:
Anmol Singh Bhatia 2023-02-23 19:04:08 +05:30 committed by GitHub
parent 69e8b504de
commit 946dddb6b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -276,6 +276,7 @@ export const SingleBoardIssue: React.FC<Props> = ({
issue={issue} issue={issue}
partialUpdateIssue={partialUpdateIssue} partialUpdateIssue={partialUpdateIssue}
isNotAllowed={isNotAllowed} isNotAllowed={isNotAllowed}
tooltipPosition="left"
/> />
)} )}
</div> </div>

View File

@ -18,6 +18,7 @@ import { PROJECT_MEMBERS } from "constants/fetch-keys";
type Props = { type Props = {
issue: IIssue; issue: IIssue;
partialUpdateIssue: (formData: Partial<IIssue>) => void; partialUpdateIssue: (formData: Partial<IIssue>) => void;
tooltipPosition?: "left" | "right";
position?: "left" | "right"; position?: "left" | "right";
isNotAllowed: boolean; isNotAllowed: boolean;
}; };
@ -25,6 +26,7 @@ type Props = {
export const ViewAssigneeSelect: React.FC<Props> = ({ export const ViewAssigneeSelect: React.FC<Props> = ({
issue, issue,
partialUpdateIssue, partialUpdateIssue,
tooltipPosition = "right",
position = "right", position = "right",
isNotAllowed, isNotAllowed,
}) => { }) => {
@ -57,7 +59,7 @@ export const ViewAssigneeSelect: React.FC<Props> = ({
<div> <div>
<Listbox.Button> <Listbox.Button>
<Tooltip <Tooltip
position="top-right" position={`top-${tooltipPosition}`}
tooltipHeading="Assignees" tooltipHeading="Assignees"
tooltipContent={ tooltipContent={
issue.assignee_details.length > 0 issue.assignee_details.length > 0