From 36faf103025fc38c050a0915cc5631d271ecafe3 Mon Sep 17 00:00:00 2001 From: mkue Date: Tue, 14 Nov 2023 23:01:07 +0100 Subject: [PATCH] linting issues --- ui/src/components/typography/typography.tsx | 30 +++++++++---------- .../donate/individual/donation-form.tsx | 2 +- 2 files changed, 15 insertions(+), 17 deletions(-) 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 (