Skip to content

Commit

Permalink
Prettified Code!
Browse files Browse the repository at this point in the history
  • Loading branch information
mkue authored and actions-user committed Nov 9, 2023
1 parent 94e1862 commit 8a04f7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
10 changes: 3 additions & 7 deletions website/src/components/i18n-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,9 @@ type I18nDialogProps = {
};
};

export function I18nDialog({
languages,
regions,
currencies,
translations,
children,
}: PropsWithChildren<I18nDialogProps>) {
export function I18nDialog(
{ languages, regions, currencies, translations, children }: PropsWithChildren<I18nDialogProps>,
) {
const [open, setOpen] = useState(false);
const { language, setLanguage, region, setRegion, currency, setCurrency } = useI18n();

Expand Down
12 changes: 3 additions & 9 deletions website/src/components/navbar/navbar-client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down

0 comments on commit 8a04f7a

Please sign in to comment.