From 3b9468651354510704ba1cc6649f83066ac9c270 Mon Sep 17 00:00:00 2001 From: nuanyang233 <528944303@qq.com> Date: Fri, 25 Feb 2022 00:21:38 -0800 Subject: [PATCH] feat: add limit about create wallet and persona (#5701) * feat: add limit about create wallet and persona * chore: reply review * fix: bugfix * fix: bugfix --- .../Personas/components/PersonaDrawer/index.tsx | 7 ++++++- .../WelcomeServices/restoreBackup.ts | 6 ++++-- .../popups/pages/Personas/Home/index.tsx | 16 +++++++++++----- .../popups/pages/Wallet/SwitchWallet/index.tsx | 13 ++++++++++--- packages/shared/src/constants.tsx | 3 +++ 5 files changed, 34 insertions(+), 11 deletions(-) diff --git a/packages/dashboard/src/pages/Personas/components/PersonaDrawer/index.tsx b/packages/dashboard/src/pages/Personas/components/PersonaDrawer/index.tsx index d81ebe3293ae..3804da3758dc 100644 --- a/packages/dashboard/src/pages/Personas/components/PersonaDrawer/index.tsx +++ b/packages/dashboard/src/pages/Personas/components/PersonaDrawer/index.tsx @@ -6,6 +6,7 @@ import { PersonaCard } from '../PersonaCard' import { useDashboardI18N } from '../../../../locales' import { PersonaIdentifier, PersonaInformation, DashboardRoutes } from '@masknet/shared-base' import { useNavigate } from 'react-router-dom' +import { MAX_PERSONA_LIMIT } from '@masknet/shared' const useStyles = makeStyles()((theme) => ({ paper: { @@ -97,7 +98,11 @@ export const PersonaDrawerUI = memo( ) })} - +