Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
koji committed Apr 9, 2024
1 parent 374f9ae commit ec56812
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 36 deletions.
5 changes: 3 additions & 2 deletions opentrons-ai-client/src/App.test.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from 'react'
import { screen } from '@testing-library/react'
import { describe, it } from 'vitest'

import { renderWithProviders } from './__testing-utils__'

import App from './App'
import { App } from './App'

const render = () => {
const render = (): ReturnType<typeof renderWithProviders> => {
return renderWithProviders(<App />)
}

Expand Down
6 changes: 2 additions & 4 deletions opentrons-ai-client/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import * as React from 'react'
import React from 'react'
import { Flex, StyledText } from '@opentrons/components'
function App() {
export function App(): JSX.Element {
return (
<Flex>
<StyledText as="h1">Opentrons AI</StyledText>
</Flex>
)
}

export default App

This file was deleted.

7 changes: 0 additions & 7 deletions opentrons-ai-client/src/components/Button/index.tsx

This file was deleted.

20 changes: 11 additions & 9 deletions opentrons-ai-client/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import React from 'react'

import ReactDOM from 'react-dom/client'
import { App } from './App'

import App from './App.tsx'
import './index.css'

ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<App />
</React.StrictMode>
)
const rootElement = document.getElementById('root')
if (rootElement) {
ReactDOM.createRoot(rootElement).render(
<React.StrictMode>
<App />
</React.StrictMode>
)
} else {
console.error('Root element not found')
}
1 change: 0 additions & 1 deletion opentrons-ai-client/src/vite-env.d.ts

This file was deleted.

1 change: 1 addition & 0 deletions tsconfig-eslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"labware-designer/typings",
"labware-library/src",
"labware-library/typings",
"opentrons-ai-client/src",
"shared-data/deck",
"shared-data/js",
"shared-data/protocol",
Expand Down

0 comments on commit ec56812

Please sign in to comment.