Skip to content

Commit

Permalink
[EuiContextMenuItem] Remove deprecated prop usage in favor of new `to…
Browse files Browse the repository at this point in the history
…olTipProps`
  • Loading branch information
cee-chen committed Dec 21, 2023
1 parent ddfc0c0 commit 9ed96cf
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class DataDownloadOptions extends Component<DataDownloadOptionsProps, DataDownlo
defaultMessage="Download the data in table format"
/>
}
toolTipPosition="left"
toolTipProps={{ position: 'left' }}
>
<FormattedMessage
id="data.inspector.table.formattedCSVButtonLabel"
Expand All @@ -157,7 +157,7 @@ class DataDownloadOptions extends Component<DataDownloadOptionsProps, DataDownlo
defaultMessage="Download the data as provided, for example, dates as timestamps"
/>
}
toolTipPosition="left"
toolTipProps={{ position: 'left' }}
>
<FormattedMessage id="data.inspector.table.rawCSVButtonLabel" defaultMessage="Raw CSV" />
</EuiContextMenuItem>,
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/inspector/public/ui/inspector_view_chooser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class InspectorViewChooser extends Component<Props, State> {
this.closeSelector();
}}
toolTipContent={view.help}
toolTipPosition="left"
toolTipProps={{ position: 'left' }}
data-test-subj={`inspectorViewChooser${view.title}`}
>
{view.title}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ const FieldPanel: FC<FieldPanelProps> = ({
disabled: caseAttachmentButtonDisabled,
...(caseAttachmentButtonDisabled
? {
toolTipPosition: 'left' as const,
toolTipProps: { position: 'left' as const },
toolTipContent: i18n.translate(
'xpack.aiops.changePointDetection.attachToCaseTooltipContent',
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ export const AlertDropdown = () => {
: inlineLogViewTooltipContent
: undefined
}
toolTipTitle={
!canCreateAlerts
toolTipProps={{
title: !canCreateAlerts
? readOnly
? readOnlyUserTooltipTitle
: inlineLogViewTooltipTitle
: undefined
}
: undefined,
}}
>
<FormattedMessage
id="xpack.infra.alerting.logs.createAlertButton"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ export const useBulkActions = ({
toolTipContent: missingActionPrivileges
? i18n.LACK_OF_KIBANA_ACTIONS_FEATURE_PRIVILEGES
: undefined,
toolTipPosition: 'right',
toolTipProps: { position: 'right' },
icon: undefined,
},
{
Expand All @@ -311,7 +311,7 @@ export const useBulkActions = ({
toolTipContent: missingActionPrivileges
? i18n.LACK_OF_KIBANA_ACTIONS_FEATURE_PRIVILEGES
: undefined,
toolTipPosition: 'right',
toolTipProps: { position: 'right' },
icon: undefined,
},
{
Expand All @@ -337,7 +337,7 @@ export const useBulkActions = ({
toolTipContent: !hasActionsPrivileges
? i18n.LACK_OF_KIBANA_ACTIONS_FEATURE_PRIVILEGES
: undefined,
toolTipPosition: 'right',
toolTipProps: { position: 'right' },
icon: undefined,
},
{
Expand All @@ -349,7 +349,7 @@ export const useBulkActions = ({
toolTipContent: missingActionPrivileges
? i18n.LACK_OF_KIBANA_ACTIONS_FEATURE_PRIVILEGES
: undefined,
toolTipPosition: 'right',
toolTipProps: { position: 'right' },
icon: undefined,
},
{
Expand All @@ -361,7 +361,7 @@ export const useBulkActions = ({
toolTipContent: missingActionPrivileges
? i18n.LACK_OF_KIBANA_ACTIONS_FEATURE_PRIVILEGES
: undefined,
toolTipPosition: 'right',
toolTipProps: { position: 'right' },
icon: undefined,
},
{
Expand All @@ -382,7 +382,7 @@ export const useBulkActions = ({
toolTipContent: missingActionPrivileges
? i18n.LACK_OF_KIBANA_ACTIONS_FEATURE_PRIVILEGES
: undefined,
toolTipPosition: 'right',
toolTipProps: { position: 'right' },
icon: undefined,
},
{
Expand All @@ -397,7 +397,7 @@ export const useBulkActions = ({
'data-test-subj': 'deleteRuleBulk',
disabled: isDeleteDisabled,
onClick: handleDeleteAction,
toolTipPosition: 'right',
toolTipProps: { position: 'right' },
icon: undefined,
},
],
Expand All @@ -415,7 +415,7 @@ export const useBulkActions = ({
toolTipContent: missingActionPrivileges
? i18n.LACK_OF_KIBANA_ACTIONS_FEATURE_PRIVILEGES
: undefined,
toolTipPosition: 'right',
toolTipProps: { position: 'right' },
},
{
key: i18n.BULK_ACTION_DELETE_TAGS,
Expand All @@ -426,7 +426,7 @@ export const useBulkActions = ({
toolTipContent: missingActionPrivileges
? i18n.LACK_OF_KIBANA_ACTIONS_FEATURE_PRIVILEGES
: undefined,
toolTipPosition: 'right',
toolTipProps: { position: 'right' },
},
],
},
Expand All @@ -443,7 +443,7 @@ export const useBulkActions = ({
toolTipContent: missingActionPrivileges
? i18n.LACK_OF_KIBANA_ACTIONS_FEATURE_PRIVILEGES
: undefined,
toolTipPosition: 'right',
toolTipProps: { position: 'right' },
},
{
key: i18n.BULK_ACTION_DELETE_INDEX_PATTERNS,
Expand All @@ -454,7 +454,7 @@ export const useBulkActions = ({
toolTipContent: missingActionPrivileges
? i18n.LACK_OF_KIBANA_ACTIONS_FEATURE_PRIVILEGES
: undefined,
toolTipPosition: 'right',
toolTipProps: { position: 'right' },
},
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export const PolicyArtifactsList = React.memo<PolicyArtifactsListProps>(
},
disabled: isGlobal,
toolTipContent: isGlobal ? labels.listRemoveActionNotAllowedMessage : undefined,
toolTipPosition: 'top' as const,
toolTipProps: { position: 'top' as const },
'data-test-subj': 'remove-from-policy-action',
};
return {
Expand Down

0 comments on commit 9ed96cf

Please sign in to comment.