Skip to content

Commit

Permalink
feat(protocol-designer): update change tip tooltips (#3214)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanLondon committed Mar 26, 2019
1 parent cef5123 commit acaca5f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ const ChangeTipField = (props: Props) => {
const {name, disabledOptions} = props

const options = props.options.map((value) => {
const toolTip = i18n.t(`form.step_edit_form.field.change_tip.option_tooltip.${value}`)
const tooltip = <div className={styles.tooltip}>
{i18n.t(`form.step_edit_form.field.change_tip.option_tooltip.${value}`)}</div>
const option = i18n.t(`form.step_edit_form.field.change_tip.option.${value}`)
const label = (
<HoverTooltip tooltipComponent={toolTip} positionFixed placement='top'>
<HoverTooltip tooltipComponent={tooltip} positionFixed placement='top'>
{(hoverTooltipHandlers) => <div {...hoverTooltipHandlers}>{option}</div>}
</HoverTooltip>
)
Expand Down
18 changes: 9 additions & 9 deletions protocol-designer/src/localization/en/form.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,18 @@
"change_tip": {
"label": "change tip",
"option": {
"always": "Always",
"once": "Once",
"perSource": "Per Source Well",
"perDest": "Per Destination Well",
"always": "Before every aspirate",
"once": "Once at the start of step",
"perSource": "Per source well",
"perDest": "Per destination well",
"never": "Never"
},
"option_tooltip": {
"always": "Avoid contaminating both source & destination wells",
"once": "Only at start of step",
"perSource": "Avoid cross-contaminating source wells",
"perDest": "Avoid cross-contaminating destination wells",
"never": "Use same tip as last step"
"always": "Always aspirate with a fresh tip.",
"once": "Get one new tip to use for the whole step.",
"perSource": "Get a new tip when aspirating from a new source well. Keep tip for repeat aspirations from the same source well.",
"perDest": "Get a new tip when dispensing into a new destination well. Keep tip for repeat dispenses into the same destination well.",
"never": "Use same tip as the previous step."
}
},
"tip_position": {"label": "tip position"},
Expand Down

0 comments on commit acaca5f

Please sign in to comment.