-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'pd_dev_confiramtion' of https://github.com/Opentrons/op…
…entrons into pd-flex-pipette-selection
- Loading branch information
Showing
7 changed files
with
202 additions
and
34 deletions.
There are no files selected for viewing
67 changes: 51 additions & 16 deletions
67
protocol-designer/src/components/FlexProtocolEditor/CreateFlexFileForm.tsx
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
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
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
58 changes: 58 additions & 0 deletions
58
protocol-designer/src/components/FlexProtocolEditor/FlexUpdateConfirmation.tsx
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,58 @@ | ||
import React from 'react' | ||
import styles from './FlexComponents.css' | ||
import { StyledText } from './StyledText' | ||
|
||
interface UpdateConfirmationProps { | ||
confirmationTitle: string | ||
confirmationMessage: string | ||
cancelButtonName: string | ||
continueButtonName: string | ||
handleCancelClick: any | ||
handleConfirmClick: any | ||
} | ||
|
||
export const UpdateConfirmation = ({ | ||
confirmationTitle, | ||
confirmationMessage, | ||
cancelButtonName, | ||
continueButtonName, | ||
handleCancelClick, | ||
handleConfirmClick, | ||
}: UpdateConfirmationProps): any => { | ||
return ( | ||
<> | ||
<div className={styles.confirmation_overlay}> | ||
<div className={styles.confirmation_model}> | ||
<div className={styles.flex_title}> | ||
<StyledText as="h2">{confirmationTitle}</StyledText> | ||
<button | ||
className={styles.confirmation_model_x_button} | ||
onClick={handleCancelClick} | ||
> | ||
<StyledText as="h4">X</StyledText> | ||
</button> | ||
</div> | ||
<div className={styles.line_separator} /> | ||
<StyledText as="h4">{confirmationMessage}</StyledText> | ||
<br /> | ||
<br /> | ||
<div className={styles.line_separator} /> | ||
<div className={styles.right_end}> | ||
<button | ||
className={styles.confirmation_model_cancel_button} | ||
onClick={handleCancelClick} | ||
> | ||
{cancelButtonName} | ||
</button> | ||
<button | ||
className={styles.confirmation_model_proceed_button} | ||
onClick={handleConfirmClick} | ||
> | ||
{continueButtonName} | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</> | ||
) | ||
} |