Skip to content

Commit

Permalink
format and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sfoster1 committed Jun 21, 2024
1 parent 1ffb820 commit 78614b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/src/atoms/StyledText/StyledText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,12 @@ function styleForODDName(name?: ODDStyles): FlattenSimpleInterpolation {
return name ? ODDStyleMap[name].style : css``
}

// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
// this is some artifact of the way styled-text forwards arguments.
/* eslint-disable @typescript-eslint/no-unsafe-argument */
const DesktopStyledText: (props: Props) => JSX.Element = styled(Text)<Props>`
${props => styleForDesktopName(props.desktopStyle)}
`
/* eslint-enable @typescript-eslint/no-unsafe-argument */

export const StyledText: (props: Props) => JSX.Element = styled(
DesktopStyledText
Expand Down

0 comments on commit 78614b2

Please sign in to comment.