Skip to content

Commit

Permalink
refactor(app): rename error recovery "hooks" dir to "utils" (#15449)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhuff committed Jun 18, 2024
1 parent d575770 commit 70b4174
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
ManageTips,
} from './RecoveryOptions'
import { RecoveryInProgress } from './RecoveryInProgress'
import { getErrorKind } from './hooks'
import { getErrorKind } from './utils'
import { RECOVERY_MAP } from './constants'

import type { RobotType } from '@opentrons/shared-data'
Expand Down
3 changes: 2 additions & 1 deletion app/src/organisms/ErrorRecoveryFlows/RunPausedSplash.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ import {
} from '@opentrons/components'

import { getIsOnDevice } from '../../redux/config'
import { getErrorKind, useErrorName } from './hooks'
import { useErrorName } from './hooks'
import { getErrorKind } from './utils'
import { LargeButton } from '../../atoms/buttons'
import { RECOVERY_MAP } from './constants'
import { StepInfo } from './shared'
Expand Down
1 change: 0 additions & 1 deletion app/src/organisms/ErrorRecoveryFlows/hooks/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export { getErrorKind } from './getErrorKind'
export { useCurrentlyRecoveringFrom } from './useCurrentlyRecoveringFrom'
export { useErrorMessage } from './useErrorMessage'
export { useErrorName } from './useErrorName'
Expand Down
2 changes: 1 addition & 1 deletion app/src/organisms/ErrorRecoveryFlows/hooks/useERUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useRecoveryCommands } from './useRecoveryCommands'
import { useRecoveryTipStatus } from './useRecoveryTipStatus'
import { useRecoveryRouting } from './useRecoveryRouting'
import { useFailedLabwareUtils } from './useFailedLabwareUtils'
import { getFailedCommandPipetteInfo } from './getFailedCommandPipetteInfo'
import { getFailedCommandPipetteInfo } from '../utils'
import { useRecoveryMapUtils } from './useRecoveryMapUtils'
import {
useNotifyAllCommandsQuery,
Expand Down
2 changes: 2 additions & 0 deletions app/src/organisms/ErrorRecoveryFlows/utils/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { getErrorKind } from './getErrorKind'
export { getFailedCommandPipetteInfo } from './getFailedCommandPipetteInfo'

0 comments on commit 70b4174

Please sign in to comment.