From 8a04f7af7000f97c37d0c240af00cfcb6f714977 Mon Sep 17 00:00:00 2001 From: mkue Date: Thu, 9 Nov 2023 12:51:37 +0000 Subject: [PATCH] Prettified Code! --- website/src/components/i18n-dialog.tsx | 10 +++------- website/src/components/navbar/navbar-client.tsx | 12 +++--------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/website/src/components/i18n-dialog.tsx b/website/src/components/i18n-dialog.tsx index 93eb3aa46..8538d5785 100644 --- a/website/src/components/i18n-dialog.tsx +++ b/website/src/components/i18n-dialog.tsx @@ -41,13 +41,9 @@ type I18nDialogProps = { }; }; -export function I18nDialog({ - languages, - regions, - currencies, - translations, - children, -}: PropsWithChildren) { +export function I18nDialog( + { languages, regions, currencies, translations, children }: PropsWithChildren, +) { const [open, setOpen] = useState(false); const { language, setLanguage, region, setRegion, currency, setCurrency } = useI18n(); diff --git a/website/src/components/navbar/navbar-client.tsx b/website/src/components/navbar/navbar-client.tsx index 4c1d786e1..51b33f754 100644 --- a/website/src/components/navbar/navbar-client.tsx +++ b/website/src/components/navbar/navbar-client.tsx @@ -61,15 +61,9 @@ type NavbarProps = { }[]; } & DefaultParams; -export function NavbarClient({ - lang, - region, - translations, - languages, - regions, - currencies, - sections = [], -}: NavbarProps) { +export function NavbarClient( + { lang, region, translations, languages, regions, currencies, sections = [] }: NavbarProps, +) { const [isOpen, setIsOpen] = useState(false); const i18nDialog = (