diff --git a/awx/ui_next/src/components/FieldWithPrompt/FieldWithPrompt.jsx b/awx/ui_next/src/components/FieldWithPrompt/FieldWithPrompt.jsx index 6328c9f26a..8932c7cbe4 100644 --- a/awx/ui_next/src/components/FieldWithPrompt/FieldWithPrompt.jsx +++ b/awx/ui_next/src/components/FieldWithPrompt/FieldWithPrompt.jsx @@ -1,16 +1,10 @@ import React from 'react'; -import { bool, func, node, string } from 'prop-types'; +import { bool, node, string } from 'prop-types'; import { withI18n } from '@lingui/react'; import { t } from '@lingui/macro'; -import { Tooltip } from '@patternfly/react-core'; -import { CheckboxField } from '@components/FormField'; -import { QuestionCircleIcon as PFQuestionCircleIcon } from '@patternfly/react-icons'; +import { CheckboxField, FieldTooltip } from '@components/FormField'; import styled from 'styled-components'; -const QuestionCircleIcon = styled(PFQuestionCircleIcon)` - margin-left: 10px; -`; - const FieldHeader = styled.div` display: flex; justify-content: space-between; @@ -33,9 +27,7 @@ function FieldWithPrompt({ label, promptId, promptName, - promptValidate, tooltip, - tooltipMaxWidth, }) { return (
@@ -49,21 +41,12 @@ function FieldWithPrompt({ )} - {tooltip && ( - - - - )} + {tooltip && }
{children} @@ -77,16 +60,12 @@ FieldWithPrompt.propTypes = { label: string.isRequired, promptId: string.isRequired, promptName: string.isRequired, - promptValidate: func, tooltip: node, - tooltipMaxWidth: string, }; FieldWithPrompt.defaultProps = { isRequired: false, - promptValidate: () => {}, tooltip: null, - tooltipMaxWidth: '', }; export default withI18n()(FieldWithPrompt);