Skip to content

Commit

Permalink
refactor(components, app): move RadioButton and add styling for helix
Browse files Browse the repository at this point in the history
closes AUTH-620
  • Loading branch information
jerader committed Aug 7, 2024
1 parent 46d59df commit bd2157b
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
SPACING,
StyledText,
RESPONSIVENESS,
RadioButton,
} from '@opentrons/components'

import {
Expand All @@ -23,7 +24,6 @@ import {
RecoverySingleColumnContentWrapper,
RecoveryRadioGroup,
} from '../shared'
import { RadioButton } from '../../../atoms/buttons'

import type { RecoveryContentProps } from '../types'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
Flex,
SPACING,
StyledText,
RadioButton,
} from '@opentrons/components'

import {
Expand All @@ -16,7 +17,6 @@ import {
ODD_ONLY,
DESKTOP_ONLY,
} from '../constants'
import { RadioButton } from '../../../atoms/buttons'
import {
RecoveryODDOneDesktopTwoColumnContentWrapper,
RecoveryRadioGroup,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import {
SPACING,
LegacyStyledText,
TYPOGRAPHY,
RadioButton,
} from '@opentrons/components'

import { RadioButton } from '../../atoms/buttons'
import { getLocalRobot } from '../../redux/discovery'
import { getNetworkInterfaces, fetchStatus } from '../../redux/networking'
import { useIsUnboxingFlowOngoing } from '../RobotSettingsDashboard/NetworkSettings/hooks'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import {
Flex,
LegacyStyledText,
SPACING,
RadioButton,
TYPOGRAPHY,
} from '@opentrons/components'
import { useAllCsvFilesQuery } from '@opentrons/react-api-client'

import { RadioButton } from '../../atoms/buttons'
import { getShellUpdateDataFiles } from '../../redux/shell'
import { ChildNavigation } from '../ChildNavigation'
import { EmptyFile } from './EmptyFile'
Expand Down
2 changes: 1 addition & 1 deletion app/src/organisms/ProtocolSetupParameters/ChooseEnum.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import {
Flex,
SPACING,
LegacyStyledText,
RadioButton,
TYPOGRAPHY,
} from '@opentrons/components'
import { RadioButton } from '../../atoms/buttons'
import { useToaster } from '../ToasterOven'
import { ChildNavigation } from '../ChildNavigation'
import type { ChoiceParameter } from '@opentrons/shared-data'
Expand Down
3 changes: 1 addition & 2 deletions app/src/organisms/QuickTransferFlow/SelectDestLabware.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ import {
POSITION_FIXED,
ALIGN_CENTER,
Tabs,
RadioButton,
} from '@opentrons/components'

import { RadioButton } from '../../atoms/buttons'

import { ChildNavigation } from '../ChildNavigation'
import { getCompatibleLabwareByCategory } from './utils'

Expand Down
2 changes: 1 addition & 1 deletion app/src/organisms/QuickTransferFlow/SelectPipette.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import {
LegacyStyledText,
TYPOGRAPHY,
DIRECTION_COLUMN,
RadioButton,
} from '@opentrons/components'
import { useInstrumentsQuery } from '@opentrons/react-api-client'
import { RIGHT, LEFT } from '@opentrons/shared-data'
import { RadioButton } from '../../atoms/buttons'
import { usePipetteSpecsV2 } from '../../resources/instruments/hooks'
import { ChildNavigation } from '../ChildNavigation'

Expand Down
3 changes: 1 addition & 2 deletions app/src/organisms/QuickTransferFlow/SelectSourceLabware.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ import {
POSITION_FIXED,
ALIGN_CENTER,
Tabs,
RadioButton,
} from '@opentrons/components'

import { RadioButton } from '../../atoms/buttons'

import { ChildNavigation } from '../ChildNavigation'
import { getCompatibleLabwareByCategory } from './utils'

Expand Down
8 changes: 6 additions & 2 deletions app/src/organisms/QuickTransferFlow/SelectTipRack.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import * as React from 'react'
import { useTranslation } from 'react-i18next'
import { Flex, SPACING, DIRECTION_COLUMN } from '@opentrons/components'
import {
Flex,
SPACING,
DIRECTION_COLUMN,
RadioButton,
} from '@opentrons/components'
import { getAllDefinitions } from '@opentrons/shared-data'
import { RadioButton } from '../../atoms/buttons'
import { ChildNavigation } from '../ChildNavigation'

import type { LabwareDefinition2 } from '@opentrons/shared-data'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import {
DIRECTION_COLUMN,
POSITION_FIXED,
COLORS,
RadioButton,
} from '@opentrons/components'
import { getTopPortalEl } from '../../../App/portal'
import { RadioButton } from '../../../atoms/buttons'
import { ChildNavigation } from '../../ChildNavigation'

import type {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
SPACING,
DIRECTION_COLUMN,
POSITION_FIXED,
RadioButton,
COLORS,
} from '@opentrons/components'
import {
Expand All @@ -14,7 +15,6 @@ import {
TRASH_BIN_ADAPTER_FIXTURE,
} from '@opentrons/shared-data'
import { getTopPortalEl } from '../../../App/portal'
import { RadioButton } from '../../../atoms/buttons'
import { useNotifyDeckConfigurationQuery } from '../../../resources/deck_configuration'
import { ChildNavigation } from '../../ChildNavigation'

Expand Down
8 changes: 6 additions & 2 deletions app/src/organisms/RobotSettingsDashboard/TouchScreenSleep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ import * as React from 'react'
import { useDispatch, useSelector } from 'react-redux'
import { useTranslation } from 'react-i18next'

import { DIRECTION_COLUMN, Flex, SPACING } from '@opentrons/components'
import {
DIRECTION_COLUMN,
Flex,
SPACING,
RadioButton,
} from '@opentrons/components'

import { RadioButton } from '../../atoms/buttons'
import { ChildNavigation } from '../../organisms/ChildNavigation'
import {
getOnDeviceDisplaySettings,
Expand Down

0 comments on commit bd2157b

Please sign in to comment.