From 8e8f70282a3104289267d0dfb0e6d105f96b34a9 Mon Sep 17 00:00:00 2001 From: indaviande Date: Tue, 17 Dec 2024 14:53:41 +0100 Subject: [PATCH] lint --- src/components/primitives/Text.tsx | 31 +++++------------------------- 1 file changed, 5 insertions(+), 26 deletions(-) diff --git a/src/components/primitives/Text.tsx b/src/components/primitives/Text.tsx index 3f204996..4f4322d8 100644 --- a/src/components/primitives/Text.tsx +++ b/src/components/primitives/Text.tsx @@ -19,8 +19,7 @@ export const textStyles = tv( md: "text-base", lg: "text-lg", xl: "text-xl", - display1: - "font-title font-bold leading-tight italic uppercase !text-[clamp(44px,5vw+0.875rem,104px)]", + display1: "font-title font-bold leading-tight italic uppercase !text-[clamp(44px,5vw+0.875rem,104px)]", 1: "font-title font-bold italic leading-none !text-[clamp(44px,4.333vw+1.125rem,96px)]", 2: "font-title font-bold leading-none italic !text-[clamp(38px,0.667vw+2.125rem,46px)]", 3: "font-title font-bold leading-none italic !text-[clamp(26px,0.667vw+1.375rem,34px)]", @@ -38,32 +37,12 @@ export const textStyles = tv( size: "md", }, }, - { twMerge: false } + { twMerge: false }, ); -export type TextProps = Component< - Styled & { bold?: boolean }, - HTMLParagraphElement ->; +export type TextProps = Component & { bold?: boolean }, HTMLParagraphElement>; -export default function Text({ - look, - size, - style, - bold, - interactable, - className, - ...props -}: TextProps) { +export default function Text({ look, size, style, bold, interactable, className, ...props }: TextProps) { const styleBold = bold ? "font-bold" : ""; - return ( -

- ); + return

; }