fix: issue card assignee empty state tooltip (#4029)

This commit is contained in:
Lakhan Baheti 2024-03-21 20:59:08 +05:30 committed by GitHub
parent 86ae79f851
commit 9642b761b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 1 deletions

View File

@ -37,6 +37,7 @@ export const MemberDropdown: React.FC<Props> = observer((props) => {
onChange, onChange,
onClose, onClose,
placeholder = "Members", placeholder = "Members",
tooltipContent,
placement, placement,
projectId, projectId,
showTooltip = false, showTooltip = false,
@ -123,7 +124,7 @@ export const MemberDropdown: React.FC<Props> = observer((props) => {
className={buttonClassName} className={buttonClassName}
isActive={isOpen} isActive={isOpen}
tooltipHeading={placeholder} tooltipHeading={placeholder}
tooltipContent={`${value?.length ?? 0} assignee${value?.length !== 1 ? "s" : ""}`} tooltipContent={tooltipContent ?? `${value?.length ?? 0} assignee${value?.length !== 1 ? "s" : ""}`}
showTooltip={showTooltip} showTooltip={showTooltip}
variant={buttonVariant} variant={buttonVariant}
> >

View File

@ -5,6 +5,7 @@ export type MemberDropdownProps = TDropdownProps & {
dropdownArrow?: boolean; dropdownArrow?: boolean;
dropdownArrowClassName?: string; dropdownArrowClassName?: string;
placeholder?: string; placeholder?: string;
tooltipContent?: string;
onClose?: () => void; onClose?: () => void;
} & ( } & (
| { | {

View File

@ -341,6 +341,9 @@ export const IssueProperties: React.FC<IIssueProperties> = observer((props) => {
multiple multiple
buttonVariant={issue.assignee_ids?.length > 0 ? "transparent-without-text" : "border-without-text"} buttonVariant={issue.assignee_ids?.length > 0 ? "transparent-without-text" : "border-without-text"}
buttonClassName={issue.assignee_ids?.length > 0 ? "hover:bg-transparent px-0" : ""} buttonClassName={issue.assignee_ids?.length > 0 ? "hover:bg-transparent px-0" : ""}
showTooltip={issue?.assignee_ids.length === 0}
placeholder="Assignees"
tooltipContent=""
/> />
</div> </div>
</WithDisplayPropertiesHOC> </WithDisplayPropertiesHOC>