From 2ad9f979ef278a79dd5c48ee322d3be995e9b9f9 Mon Sep 17 00:00:00 2001 From: IanLondon Date: Fri, 22 Mar 2019 15:28:51 -0400 Subject: [PATCH] add well order tooltip --- .../StepEditForm/fields/WellOrder/index.js | 45 +++++++++++-------- 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/protocol-designer/src/components/StepEditForm/fields/WellOrder/index.js b/protocol-designer/src/components/StepEditForm/fields/WellOrder/index.js index e9bdd54a696e..271dcd20010a 100644 --- a/protocol-designer/src/components/StepEditForm/fields/WellOrder/index.js +++ b/protocol-designer/src/components/StepEditForm/fields/WellOrder/index.js @@ -1,15 +1,18 @@ // @flow import * as React from 'react' import {connect} from 'react-redux' -import {FormGroup} from '@opentrons/components' +import {HoverTooltip, FormGroup} from '@opentrons/components' import cx from 'classnames' +import i18n from '../../../../localization' import {selectors as stepFormSelectors} from '../../../../step-forms' -import styles from './WellOrderInput.css' -import stepEditStyles from '../../StepEditForm.css' -import WellOrderModal from './WellOrderModal' import ZIG_ZAG_IMAGE from '../../../../images/zig_zag_icon.svg' +import WellOrderModal from './WellOrderModal' + import type {BaseState} from '../../../../types' +import stepEditStyles from '../../StepEditForm.css' +import styles from './WellOrderInput.css' + type OP = { className?: ?string, label?: string, @@ -30,20 +33,26 @@ class WellOrderInput extends React.Component { [stepEditStyles.no_label]: !this.props.label, }) return ( - - - - + + {(hoverTooltipHandlers) => +
+ + + + +
+ } +
) } }