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

View File

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