Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(components, app): add custom pipette select with category support #3996

Merged
merged 11 commits into from
Sep 17, 2019
Prev Previous commit
Next Next commit
flow fixes
  • Loading branch information
b-cooper committed Sep 17, 2019
commit 0a7f733ee36bb23400536ec23cacb324e4e6c249
2 changes: 1 addition & 1 deletion app/src/components/ChangePipette/Instructions.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default function Instructions(props: ChangePipetteProps) {
>
{!actualPipette && !wantedPipette && (
<PipetteSelection
onChange={props.onPipetteSelect}
onPipetteChange={props.onPipetteSelect}
__pipettePlusEnabled={props.__pipettePlusEnabled}
/>
)}
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/ChangePipette/PipetteSelection.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function PipetteSelection(props: PipetteSelectionProps) {
<span className={styles.pipette_selection_label}>{LABEL}</span>
<PipetteSelect
value={props.value}
onPipetteChange={props.onChange}
onPipetteChange={props.onPipetteChange}
nameBlacklist={nameBlacklist}
/>
</label>
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/ChangePipette/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ type SP = {|
type DP = {|
exit: () => mixed,
back: () => mixed,
onPipetteSelect: $PropertyType<PipetteSelectionProps, 'onChange'>,
onPipetteSelect: $PropertyType<PipetteSelectionProps, 'onPipetteChange'>,
moveToFront: () => mixed,
checkPipette: () => mixed,
goToConfirmUrl: () => mixed,
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/ChangePipette/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export type ChangePipetteProps = {
exit: () => mixed,
setWantedName: (name: string | null) => mixed,
moveToFront: () => mixed,
onPipetteSelect: $PropertyType<PipetteSelectionProps, 'onChange'>,
onPipetteSelect: $PropertyType<PipetteSelectionProps, 'onPipetteChange'>,
checkPipette: () => mixed,
goToConfirmUrl: () => mixed,
__pipettePlusEnabled: boolean,
Expand Down