-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(app): Add opt-in modal for new p10s (#2816)
Closes #2793
- Loading branch information
Showing
5 changed files
with
130 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
app/src/components/RobotSettings/OptInPipetteModal/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// @flow | ||
import * as React from 'react' | ||
import {AlertModal} from '@opentrons/components' | ||
import {Portal} from '../../portal' | ||
import styles from './styles.css' | ||
type Props = { | ||
setP10Setting: () => mixed, | ||
setP10WarningSeen: () => mixed, | ||
} | ||
|
||
export default function OptInModal (props: Props) { | ||
const {setP10Setting, setP10WarningSeen} = props | ||
const HEADING = 'Update available for P10 single-channel pipette' | ||
const buttons = [ | ||
{onClick: setP10WarningSeen, children: 'not now'}, | ||
{ | ||
onClick: setP10Setting, | ||
children: 'Update Pipette Function', | ||
className: styles.width_auto, | ||
}, | ||
] | ||
return ( | ||
<Portal> | ||
<AlertModal heading={HEADING} buttons={buttons} alertOverlay> | ||
<p> | ||
<strong> | ||
There is an updated aspiration function available for the P10 | ||
single-channel pipette. | ||
</strong> | ||
</p> | ||
|
||
<p> | ||
This is a small but material change to the P10's pipetting | ||
performance based on an expanded data set. In particular, it decreases | ||
the low-volume µl-to-mm conversion factor to address under-aspiration | ||
issues. | ||
</p> | ||
|
||
<p> | ||
<strong> | ||
We strongly recommend you update your pipette function | ||
</strong> | ||
, unless you are an advanced user who has manually modified your P10S | ||
pipette's µl-to-mm conversion factor. | ||
</p> | ||
|
||
<p className={styles.footer}> | ||
* This setting can be changed in your robot's "Advanced | ||
Settings" menu. If you have any questions, please contact our | ||
Support Team. | ||
</p> | ||
</AlertModal> | ||
</Portal> | ||
) | ||
} |
10 changes: 10 additions & 0 deletions
10
app/src/components/RobotSettings/OptInPipetteModal/styles.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@import '@opentrons/components'; | ||
|
||
.width_auto { | ||
width: auto; | ||
padding: 0.5rem 2rem; | ||
} | ||
|
||
.footer { | ||
font-style: italic; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters