diff --git a/ui/src/components/typography/typography.tsx b/ui/src/components/typography/typography.tsx index a18c1b197..1d8ad9cb1 100644 --- a/ui/src/components/typography/typography.tsx +++ b/ui/src/components/typography/typography.tsx @@ -68,27 +68,25 @@ export type TypographyProps = { lineHeight?: LineHeight; } & ComponentPropsWithoutRef; -export function Typography( - { - as, - size = 'md', - weight = 'normal', - color = undefined, - lineHeight = 'normal', - className, - children, - ...props - }: TypographyProps, -) { +export function Typography({ + as, + size, + weight, + color, + lineHeight, + className, + children, + ...props +}: TypographyProps) { const Component = as || 'p'; return ( { setPreviewAmount(getDonationAmount(monthlyIncome, donationInterval)); - }, [monthlyIncome]); + }, [monthlyIncome, donationInterval]); return (