chore: removed module tooltip from peek-overview & issue detail (#3946)

This commit is contained in:
Lakhan Baheti 2024-03-12 19:13:04 +05:30 committed by GitHub
parent 8aca74c68d
commit c3c6ef8830
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -47,6 +47,7 @@ type ButtonContentProps = {
onChange: (moduleIds: string[]) => void;
placeholder: string;
showCount: boolean;
showTooltip?: boolean;
value: string | string[] | null;
};
@ -60,6 +61,7 @@ const ButtonContent: React.FC<ButtonContentProps> = (props) => {
onChange,
placeholder,
showCount,
showTooltip = false,
value,
} = props;
// store hooks
@ -90,12 +92,12 @@ const ButtonContent: React.FC<ButtonContentProps> = (props) => {
>
{!hideIcon && <DiceIcon className="h-2.5 w-2.5 flex-shrink-0" />}
{!hideText && (
<Tooltip tooltipHeading="Title" tooltipContent={moduleDetails?.name}>
<Tooltip tooltipHeading="Title" tooltipContent={moduleDetails?.name} disabled={!showTooltip}>
<span className="max-w-40 flex-grow truncate text-xs font-medium">{moduleDetails?.name}</span>
</Tooltip>
)}
{!disabled && (
<Tooltip tooltipContent="Remove">
<Tooltip tooltipContent="Remove" disabled={!showTooltip}>
<button
type="button"
className="flex-shrink-0"
@ -265,6 +267,7 @@ export const ModuleDropdown: React.FC<Props> = observer((props) => {
hideText={BUTTON_VARIANTS_WITHOUT_TEXT.includes(buttonVariant)}
placeholder={placeholder}
showCount={showCount}
showTooltip={showTooltip}
value={value}
onChange={onChange as any}
/>

View File

@ -71,7 +71,6 @@ export const IssueModuleSelect: React.FC<TIssueModuleSelect> = observer((props)
hideIcon
dropdownArrow
dropdownArrowClassName="h-3.5 w-3.5 hidden group-hover:inline"
showTooltip
multiple
/>
</div>