forked from github/plane
chore: removed module tooltip from peek-overview & issue detail (#3946)
This commit is contained in:
parent
8aca74c68d
commit
c3c6ef8830
@ -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}
|
||||
/>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user