Skip to content

Commit

Permalink
fix(components): modify DeckInfoLabel types (#17269)
Browse files Browse the repository at this point in the history
* fix(components): modify DeckInfoLabel types
  • Loading branch information
koji authored Jan 14, 2025
1 parent d5641e0 commit 1d8f32d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/src/molecules/DeckInfoLabel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ import { Flex } from '../../primitives'
import { ALIGN_CENTER, JUSTIFY_CENTER } from '../../styles'
import { RESPONSIVENESS, SPACING } from '../../ui-style-constants'

import type { ModuleIconName } from '../../icons'
import type { IconName, ModuleIconName } from '../../icons'
import type { StyleProps } from '../../primitives'

interface DeckLabelProps extends StyleProps {
/** deck label to display */
deckLabel: string
iconName?: undefined
iconName?: IconName
}

interface HardwareIconProps extends StyleProps {
/** hardware icon name */
iconName: ModuleIconName | 'stacked'
deckLabel?: undefined
deckLabel?: string
}

// type union requires one of deckLabel or iconName, but not both
Expand Down

0 comments on commit 1d8f32d

Please sign in to comment.