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}
partialUpdateIssue={partialUpdateIssue}
isNotAllowed={isNotAllowed}
tooltipPosition="left"
/>
)}
</div>

View File

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