Skip to content

Commit

Permalink
refactor(app): add guidance copy to rename robot slideout (#11137)
Browse files Browse the repository at this point in the history
Co-authored-by: Josh McVey <[email protected]>
  • Loading branch information
b-cooper and y3rsh authored Jul 14, 2022
1 parent a32ae7c commit df5dc38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/src/assets/localization/en/device_settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
"rename_robot_button": "Rename robot",
"rename_robot_input_limitation_label": "35 characters max",
"rename_robot_input_limitation_detail": "Please enter 35 characters max using valid inputs: letters and numbers",
"rename_robot_prefer_usb_connection": "To ensure reliable renaming of your robot, please connect to it via USB.",
"robot_name_already_exists": "Robot name already exists",
"factory_reset_slideout_title": "Factory Reset",
"factory_reset_slideout_description": "Select the robot data to clear.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { Slideout } from '../../../../../atoms/Slideout'
import { StyledText } from '../../../../../atoms/text'
import { PrimaryButton } from '../../../../../atoms/buttons'
import { InputField } from '../../../../../atoms/InputField'
import { Banner } from '../../../../../atoms/Banner'

import type { UpdatedRobotName } from '@opentrons/api-client'
import type { State, Dispatch } from '../../../../../redux/types'
Expand Down Expand Up @@ -140,6 +141,9 @@ export function RenameRobotSlideout({
}
>
<Flex flexDirection={DIRECTION_COLUMN}>
<Banner type="informing" marginBottom={SPACING.spacing4}>
{t('rename_robot_prefer_usb_connection')}
</Banner>
<StyledText as="p" marginBottom={SPACING.spacing4}>
{t('rename_robot_input_limitation_detail')}
</StyledText>
Expand Down

0 comments on commit df5dc38

Please sign in to comment.