Skip to content

Commit

Permalink
fix(app): update thumbnail image of robot
Browse files Browse the repository at this point in the history
  • Loading branch information
b-cooper committed May 17, 2023
1 parent 4c97c8d commit c3ce042
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
Binary file added app/src/assets/images/FLEX.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/assets/images/OT3.png
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { MiniCard } from '../../molecules/MiniCard'
import { getRobotModelByName, OPENTRONS_USB } from '../../redux/discovery'
import { appShellRequestor } from '../../redux/shell/remote'
import OT2_PNG from '../../assets/images/OT2-R_HERO.png'
import OT3_PNG from '../../assets/images/OT3.png'
import OT3_PNG from '../../assets/images/FLEX.png'
import { RobotBusyStatusAction } from '.'

import type { Robot } from '../../redux/discovery/types'
Expand Down
4 changes: 2 additions & 2 deletions app/src/organisms/Devices/RobotCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
} from '@opentrons/shared-data'

import OT2_PNG from '../../assets/images/OT2-R_HERO.png'
import OT3_PNG from '../../assets/images/OT3.png'
import FLEX_PNG from '../../assets/images/FLEX.png'
import { InstrumentContainer } from '../../atoms/InstrumentContainer'
import { StyledText } from '../../atoms/text'
import { CONNECTABLE, getRobotModelByName } from '../../redux/discovery'
Expand Down Expand Up @@ -66,7 +66,7 @@ export function RobotCard(props: RobotCardProps): JSX.Element | null {
css={BORDERS.cardOutlineBorder}
>
<img
src={robotModel === 'OT-2' ? OT2_PNG : OT3_PNG}
src={robotModel === 'OT-2' ? OT2_PNG : FLEX_PNG}
style={{ width: '6rem' }}
id={`RobotCard_${String(robotName)}_robotImage`}
/>
Expand Down
2 changes: 1 addition & 1 deletion app/src/organisms/Devices/RobotOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
} from '@opentrons/components'

import OT2_PNG from '../../assets/images/OT2-R_HERO.png'
import OT3_PNG from '../../assets/images/OT3.png'
import OT3_PNG from '../../assets/images/FLEX.png'
import { ToggleButton } from '../../atoms/buttons'
import { StyledText } from '../../atoms/text'
import { CONNECTABLE, getRobotModelByName } from '../../redux/discovery'
Expand Down
2 changes: 1 addition & 1 deletion app/src/organisms/Devices/__tests__/RobotCard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jest.mock('../RobotOverflowMenu')
jest.mock('../RobotStatusHeader')

const OT2_PNG_FILE_NAME = 'OT2-R_HERO.png'
const OT3_PNG_FILE_NAME = 'OT3.png'
const OT3_PNG_FILE_NAME = 'FLEX.png'
const MOCK_STATE: State = {
discovery: {
robot: { connection: { connectedTo: null } },
Expand Down
2 changes: 1 addition & 1 deletion app/src/organisms/Devices/__tests__/RobotOverview.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jest.mock('../../UpdateRobotBanner')
jest.mock('../RobotOverviewOverflowMenu')

const OT2_PNG_FILE_NAME = 'OT2-R_HERO.png'
const OT3_PNG_FILE_NAME = 'OT3.png'
const OT3_PNG_FILE_NAME = 'FLEX.png'

const MOCK_STATE: State = {
discovery: {
Expand Down

0 comments on commit c3ce042

Please sign in to comment.