Skip to content

Commit 1009bb3

Browse files
committed
refactor(app, components): update typing/icon names where necessary
1 parent f4c5a24 commit 1009bb3

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

app/src/molecules/ODDInfoScreen/OddInfoScreen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
TYPOGRAPHY,
1212
} from '@opentrons/components'
1313

14-
import type { ODDStyles, StyleProps } from '@opentrons/components'
14+
import type { IconName, ODDStyles, StyleProps } from '@opentrons/components'
1515

1616
export type OddInfoScreenType =
1717
| 'error'
@@ -26,7 +26,7 @@ interface OddInfoScreenProps extends StyleProps {
2626
hasIcon?: boolean
2727
subText?: string
2828
textSize?: 'small' | 'large'
29-
iconName?: string
29+
iconName?: IconName
3030
}
3131

3232
const INFO_SCREEN_PROPS_BY_TYPE: Record<

app/src/organisms/ODD/QuickTransferFlow/QuickTransferAdvancedSettings/ResetAdvancedSettingsModal.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { OddModal } from '/app/molecules/OddModal'
1717
import { retrieveLiquidClassValues } from '../utils'
1818

1919
import type { Dispatch } from 'react'
20+
import type { IconName } from '@opentrons/components'
2021
import type {
2122
FlowRateKind,
2223
QuickTransferSummaryAction,
@@ -45,7 +46,7 @@ export function ResetAdvancedSettingsModal({
4546
const { displayName, liquidClassName } = liquidClass
4647
const modalHeader = {
4748
title: t('reset_kind_settings', { transferName: kind }),
48-
iconName: 'ot-alert',
49+
iconName: 'ot-alert' as IconName,
4950
iconColor: COLORS.yellow50,
5051
}
5152
const modalProps = {

app/src/pages/ODD/RobotSettingsDashboard/RobotSettingsList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export function RobotSettingsList(props: RobotSettingsListProps): JSX.Element {
217217
settingName={t('disable_stacker_sensors')}
218218
dataTestId="RobotSettingButton_disable_stacker_sensors"
219219
settingInfo={t('disable_stacker_sensors_description')}
220-
iconName="stacker-sensors"
220+
iconName="ot-flex-stacker"
221221
rightElement={<OnOffToggle isOn={sensorsDisabled} />}
222222
onClick={toggleSensors}
223223
/>

components/src/molecules/RobotInfoLabel/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ import { COLORS } from '../../helix-design-system'
55
import { Icon } from '../../icons'
66
import styles from './robotinfolabel.module.css'
77

8+
import type { IconName } from '../../icons'
9+
810
export interface RobotInfoLabelProps {
911
deckLabel?: string
10-
iconName?: string
12+
iconName?: IconName
1113
highlight?: boolean
1214
size?: 'large' | 'default'
1315
height?: string | number

0 commit comments

Comments
 (0)