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} ); };