From 2885e6e8c400cee4c3bfb31bf320c87311ccabd0 Mon Sep 17 00:00:00 2001 From: saml33 Date: Fri, 11 Aug 2023 15:18:59 +1000 Subject: [PATCH] limit number of accounts to 5 --- components/modals/MangoAccountsListModal.tsx | 16 ++++++++++++++-- pages/404.tsx | 1 + pages/borrow.tsx | 1 + pages/leaderboard.tsx | 1 + pages/rewards.tsx | 1 + pages/search.tsx | 1 + pages/settings.tsx | 1 + pages/stats.tsx | 1 + public/locales/en/account.json | 1 + public/locales/es/account.json | 1 + public/locales/ru/account.json | 1 + public/locales/zh/account.json | 1 + public/locales/zh_tw/account.json | 1 + 13 files changed, 26 insertions(+), 2 deletions(-) diff --git a/components/modals/MangoAccountsListModal.tsx b/components/modals/MangoAccountsListModal.tsx index 85af1ff1..990b8268 100644 --- a/components/modals/MangoAccountsListModal.tsx +++ b/components/modals/MangoAccountsListModal.tsx @@ -228,7 +228,7 @@ const MangoAccountsListModal = ({ )} -
+ {mangoAccounts.length < 5 ? ( setShowNewAccountForm(true)} @@ -236,7 +236,19 @@ const MangoAccountsListModal = ({ {t('add-new-account')} -
+ ) : ( +

+ {t('account:need-more-accounts')}{' '} + + {t('discord')} + +

+ )}