From 9ea6c751b0e5e50671daec5dffbe09c0a086e49f Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Sun, 22 Oct 2023 15:50:54 +0200 Subject: [PATCH] chore: prettify --- .../header/account-bar/account-bar.tsx | 4 +- src/components/header/header.tsx | 38 ++++++++++++++++++- 2 files changed, 40 insertions(+), 2 deletions(-) diff --git a/src/components/header/account-bar/account-bar.tsx b/src/components/header/account-bar/account-bar.tsx index 01fa3467..e0b462a7 100644 --- a/src/components/header/account-bar/account-bar.tsx +++ b/src/components/header/account-bar/account-bar.tsx @@ -19,7 +19,9 @@ const AccountBar: FC = () => { {e.preventDefault();}} + onClick={(e) => { + e.preventDefault(); + }} > {t('account_bar_submit')} diff --git a/src/components/header/header.tsx b/src/components/header/header.tsx index 614318db..9c8d0b02 100644 --- a/src/components/header/header.tsx +++ b/src/components/header/header.tsx @@ -7,7 +7,43 @@ import AccountBar from './account-bar'; import Theme from '../theme'; const choices = ['/hot', '/new', '/active', '/controversialAll', '/topAll']; -const availableLanguages = ['ar', 'bn', 'cs', 'da', 'de', 'el', 'en', 'es', 'fa', 'fi', 'fil', 'fr', 'he', 'hi', 'hu', 'id', 'it', 'ja', 'ko', 'mr', 'nl', 'no', 'pl', 'pt', 'ro', 'ru', 'sq', 'sv', 'te', 'th', 'tr', 'uk', 'ur', 'vi', 'zh']; +const availableLanguages = [ + 'ar', + 'bn', + 'cs', + 'da', + 'de', + 'el', + 'en', + 'es', + 'fa', + 'fi', + 'fil', + 'fr', + 'he', + 'hi', + 'hu', + 'id', + 'it', + 'ja', + 'ko', + 'mr', + 'nl', + 'no', + 'pl', + 'pt', + 'ro', + 'ru', + 'sq', + 'sv', + 'te', + 'th', + 'tr', + 'uk', + 'ur', + 'vi', + 'zh', +]; const Language: FC = () => { const { i18n } = useTranslation();