From 91d713e5ee7f28b4a5bcbe85bdf6574dee809cf8 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Wed, 11 Dec 2024 11:33:04 +0100 Subject: [PATCH] UI: fix typography not beeing reponsive --- .../app/src/components/Typography/index.tsx | 31 ++++++------------- 1 file changed, 10 insertions(+), 21 deletions(-) diff --git a/pkgs/webview-ui/app/src/components/Typography/index.tsx b/pkgs/webview-ui/app/src/components/Typography/index.tsx index 57127f957..5b14bb50c 100644 --- a/pkgs/webview-ui/app/src/components/Typography/index.tsx +++ b/pkgs/webview-ui/app/src/components/Typography/index.tsx @@ -67,38 +67,27 @@ const weightMap: Record = { interface TypographyProps { hierarchy: H; + size: AllowedSizes; + children: JSX.Element; weight?: Weight; color?: Color; inverted?: boolean; - size: AllowedSizes; tag?: Tag; - children: JSX.Element; - classes?: string; + class?: string; } export const Typography = (props: TypographyProps) => { - const { - size, - color = "primary", - inverted, - hierarchy, - weight = "normal", - tag = "span", - children, - classes, - } = props; - return ( - {children} + {props.children} ); };