From 78614b2f84a65bbc8bd756d4eda6fde8f4f5ed01 Mon Sep 17 00:00:00 2001 From: Seth Foster Date: Fri, 21 Jun 2024 09:44:02 -0400 Subject: [PATCH] format and lint --- components/src/atoms/StyledText/StyledText.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/src/atoms/StyledText/StyledText.tsx b/components/src/atoms/StyledText/StyledText.tsx index 2651106cdd58..a4bbf6103283 100644 --- a/components/src/atoms/StyledText/StyledText.tsx +++ b/components/src/atoms/StyledText/StyledText.tsx @@ -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 => styleForDesktopName(props.desktopStyle)} ` +/* eslint-enable @typescript-eslint/no-unsafe-argument */ export const StyledText: (props: Props) => JSX.Element = styled( DesktopStyledText