Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jerader committed Mar 26, 2024
1 parent fbb7278 commit 2f97910
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import {
DIRECTION_COLUMN,
DIRECTION_ROW,
Flex,
NoParameters,
SPACING,
StyledText,
TYPOGRAPHY,
NoParameters,
} from '@opentrons/components'

import { Banner } from '../../../atoms/Banner'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ import type {
CompletedProtocolAnalysis,
RunTimeParameter,
} from '@opentrons/shared-data'
import type * as Components from '@opentrons/components'

vi.mock('@opentrons/components', async importOriginal => {
const actual = await importOriginal<typeof Components>()
const actual = await importOriginal<typeof NoParameters>()
return {
...actual,
NoParameters: vi.fn(),
Expand Down
2 changes: 1 addition & 1 deletion components/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export * from './tabbedNav'
export * from './slotmap'
export * from './structure'
export * from './tooltips'
export * from './ParametersTable'

// styles
export * from './styles'
// new ui-overhaul style vars
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import * as React from 'react'

import { BORDERS, COLORS } from '../helix-design-system'
import { SPACING, TYPOGRAPHY } from '../ui-style-constants/index'
import { StyledText } from '../atoms/StyledText'
import { Icon } from '../icons'
import { Flex } from '../primitives'
import { ALIGN_CENTER, DIRECTION_COLUMN } from '../styles'
import { BORDERS, COLORS } from '../../helix-design-system'
import { SPACING, TYPOGRAPHY } from '../../ui-style-constants/index'
import { StyledText } from '../../atoms/StyledText'
import { Icon } from '../../icons'
import { Flex } from '../../primitives'
import { ALIGN_CENTER, DIRECTION_COLUMN } from '../../styles'

interface NoParametersProps {
t?: any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import * as React from 'react'
import { screen } from '@testing-library/react'
import { describe, it, expect } from 'vitest'

import { renderWithProviders } from '../../testing/utils'
import { BORDERS, COLORS } from '../../helix-design-system'
import { renderWithProviders } from '../../../testing/utils'
import { BORDERS, COLORS } from '../../../helix-design-system'
import { NoParameters } from '../NoParameters'

const render = (props: React.ComponentProps<typeof NoParameters>) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react'
import { renderWithProviders } from '../../testing/utils'
import { renderWithProviders } from '../../../testing/utils'
import { describe, it, beforeEach } from 'vitest'
import { screen } from '@testing-library/react'
import { ParametersTable } from '../index'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import * as React from 'react'
import styled from 'styled-components'
import { formatRunTimeParameterValue } from '@opentrons/shared-data'
import { BORDERS } from '../helix-design-system'
import { SPACING, TYPOGRAPHY } from '../ui-style-constants/index'
import { StyledText } from '../atoms/StyledText'
import { BORDERS } from '../../helix-design-system'
import { SPACING, TYPOGRAPHY } from '../../ui-style-constants/index'
import { StyledText } from '../../atoms/StyledText'

import type { RunTimeParameter } from '@opentrons/shared-data'

export * from './NoParameters'

interface ProtocolParameterItemsProps {
runTimeParameters: RunTimeParameter[]
t?: any
Expand Down
2 changes: 2 additions & 0 deletions components/src/molecules/index.tsx
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
export * from './LocationIcon'
export * from './RoundTab'
export * from './ParametersTable'
export * from './ParametersTable/NoParameters'

0 comments on commit 2f97910

Please sign in to comment.