Skip to content

Commit 9b92a55

Browse files
committed
lint and style fixes
1 parent 5cdcaad commit 9b92a55

File tree

3 files changed

+10
-15
lines changed

3 files changed

+10
-15
lines changed

app/src/molecules/InterventionModal/index.tsx

+8-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react'
22
import { useSelector } from 'react-redux'
3-
import {css} from 'styled-components'
3+
import { css } from 'styled-components'
44

55
import {
66
ALIGN_CENTER,
@@ -16,7 +16,7 @@ import {
1616
POSITION_STICKY,
1717
SPACING,
1818
DIRECTION_COLUMN,
19-
RESPONSIVENESS
19+
RESPONSIVENESS,
2020
} from '@opentrons/components'
2121

2222
import { getIsOnDevice } from '../../redux/config'
@@ -143,7 +143,6 @@ export function InterventionModal({
143143
const isOnDevice = useSelector(getIsOnDevice)
144144
const modalStyle = isOnDevice ? MODAL_ODD_STYLE : MODAL_DESKTOP_STYLE
145145
const headerStyle = isOnDevice ? BASE_HEADER_STYLE : DESKTOP_HEADER_STYLE
146-
const titleSpacing = isOnDevice ? SPACING.spacing12 : SPACING.spacing4
147146

148147
return (
149148
<Flex {...WRAPPER_STYLE}>
@@ -162,13 +161,9 @@ export function InterventionModal({
162161
justifyContent={headerJustifyContent}
163162
>
164163
{titleHeading}
165-
<Flex
166-
alignItems={ALIGN_CENTER}
167-
gridGap={titleSpacing}
168-
onClick={iconHeadingOnClick}
169-
>
164+
<Flex alignItems={ALIGN_CENTER} onClick={iconHeadingOnClick}>
170165
{iconName != null ? (
171-
<Icon name={iconName} css={ICON_SIZE} />
166+
<Icon name={iconName} css={ICON_STYLE} />
172167
) : null}
173168
{iconHeading ?? null}
174169
</Flex>
@@ -180,12 +175,13 @@ export function InterventionModal({
180175
)
181176
}
182177

183-
184-
const ICON_SIZE = css`
178+
const ICON_STYLE = css`
185179
width: 1rem;
186180
height: 1rem;
181+
margin: ${SPACING.spacing4};
187182
@media (${RESPONSIVENESS.touchscreenMediaQuerySpecs}) {
188183
width: 2rem;
189184
height: 2rem;
185+
margin: ${SPACING.spacing12};
190186
}
191-
`
187+
`

app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/ManageTips.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { ODD_SECTION_TITLE_STYLE, RECOVERY_MAP } from '../constants'
1717
import {
1818
RecoveryFooterButtons,
1919
RecoverySingleColumnContentWrapper,
20-
RecoveryRadioGroup
20+
RecoveryRadioGroup,
2121
} from '../shared'
2222
import { DropTipWizardFlows } from '../../DropTipWizardFlows'
2323
import { DT_ROUTES } from '../../DropTipWizardFlows/constants'
@@ -141,7 +141,6 @@ export function BeginRemoval({
141141
css={DESKTOP_ONLY}
142142
>
143143
<RecoveryRadioGroup
144-
useBlueChecked
145144
css={css`
146145
padding: ${SPACING.spacing4};
147146
`}

components/src/forms/RadioGroup.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export function RadioGroup(props: RadioGroupProps): JSX.Element {
7676
onChange={props.onChange}
7777
/>
7878
<div className={cx(props.labelTextClassName, styles.label_text)}>
79-
{radio.name}
79+
{radio.name}
8080
</div>
8181
{radio.children}
8282
</label>

0 commit comments

Comments
 (0)