Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jerader committed Aug 1, 2024
1 parent be0fa3b commit ea75b64
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import {
PrimaryButton,
SPACING,
LegacyStyledText,
LegacyModalShell,
} from '@opentrons/components'
import { Skeleton } from '../../atoms/Skeleton'
import { LegacyModalShell } from '../LegacyModal'
import { WizardHeader } from '../WizardHeader'
import { configReducer } from '../../redux/config/reducer'
import { GenericWizardTile } from './index'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import * as React from 'react'
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import { COLORS, PrimaryButton } from '@opentrons/components'
import { LegacyModalShell } from '../LegacyModal'
import { COLORS, PrimaryButton, LegacyModalShell } from '@opentrons/components'
import { WizardHeader } from '../WizardHeader'
import { configReducer } from '../../redux/config/reducer'
import { SimpleWizardBody } from './index'
Expand Down
2 changes: 1 addition & 1 deletion app/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
"rootDir": "src",
"outDir": "lib"
},
"include": ["typings", "src", "../components/src/modals/LegacyModal"],
"include": ["typings", "src"],
"exclude": ["**/*.stories.tsx"]
}
11 changes: 4 additions & 7 deletions components/src/modals/LegacyModal/LegacyModal.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import * as React from 'react'
import {
COLORS,
PrimaryBtn,
SPACING,
LegacyStyledText,
TYPOGRAPHY,
} from '@opentrons/components'
import { LegacyModal } from './index'

import type { Story, Meta } from '@storybook/react'
import { LegacyStyledText } from '../../atoms'
import { SPACING, TYPOGRAPHY } from '../../ui-style-constants'
import { PrimaryBtn } from '../../primitives'
import { COLORS } from '../../helix-design-system'

export default {
title: 'Components/modals/LegacyModal',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import * as React from 'react'
import '@testing-library/jest-dom/vitest'
import { screen } from '@testing-library/react'
import { describe, it, expect, beforeEach } from 'vitest'
import { COLORS } from '@opentrons/components'
import { renderWithProviders } from '../../../testing/utils'
import { COLORS } from '../../../helix-design-system'
import { LegacyModal } from '..'

const render = (props: React.ComponentProps<typeof LegacyModal>) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@ import { screen, fireEvent } from '@testing-library/react'
import '@testing-library/jest-dom/vitest'
import { describe, it, expect, vi, beforeEach } from 'vitest'

import {
ALIGN_CENTER,
COLORS,
JUSTIFY_CENTER,
SPACING,
} from '@opentrons/components'
import { renderWithProviders } from '../../../testing/utils'
import { LegacyModalHeader } from '../LegacyModalHeader'
import { COLORS } from '../../../helix-design-system'
import { SPACING } from '../../../ui-style-constants'
import { ALIGN_CENTER, JUSTIFY_CENTER } from '../../../styles'

const mockClose = vi.fn()

Expand Down

0 comments on commit ea75b64

Please sign in to comment.