From ca8124e685af7c73a94809c910a0fd2df16c0a93 Mon Sep 17 00:00:00 2001 From: "heykd.eth" <65736142+thekidnamedkd@users.noreply.github.com> Date: Wed, 30 Oct 2024 03:16:02 -0700 Subject: [PATCH] fix(APP-3649): Restore deleted DAO type strings (#1411) --- src/assets/locales/en/common.json | 4 ++++ src/containers/membershipSnapshot/index.tsx | 8 ++++---- src/pages/community.tsx | 10 +++++----- src/pages/dashboard.tsx | 4 ++-- 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/assets/locales/en/common.json b/src/assets/locales/en/common.json index bfbae35d0..4cddc2254 100644 --- a/src/assets/locales/en/common.json +++ b/src/assets/locales/en/common.json @@ -307,6 +307,10 @@ "description": "What's the first thing your community needs to decide? Get your community involved in the decision-making process.", "descriptionLinkURL": "https://aragon.org/how-to/structure-dao-proposals-and-build-proposal-processes" }, + "type": { + "tokenBased": "Token-based", + "walletBased": "Wallet-based" + }, "proposals": { "publishedBy": "Published by", "Pending": "Starts in {{timeDiff}}", diff --git a/src/containers/membershipSnapshot/index.tsx b/src/containers/membershipSnapshot/index.tsx index 14477a6b9..18011aa44 100644 --- a/src/containers/membershipSnapshot/index.tsx +++ b/src/containers/membershipSnapshot/index.tsx @@ -84,8 +84,8 @@ export const MembershipSnapshot: React.FC = ({ )}`} label={ walletBased - ? t('explore.explorer.walletBased') - : t('explore.explorer.tokenBased') + ? t('governance.type.walletBased') + : t('governance.type.tokenBased') } buttonText={ walletBased @@ -128,8 +128,8 @@ export const MembershipSnapshot: React.FC = ({ )}`} label={ walletBased - ? t('explore.explorer.walletBased') - : t('explore.explorer.tokenBased') + ? t('governance.type.walletBased') + : t('governance.type.tokenBased') } buttonText={ walletBased diff --git a/src/pages/community.tsx b/src/pages/community.tsx index a5d78aa6f..7e171bc3c 100644 --- a/src/pages/community.tsx +++ b/src/pages/community.tsx @@ -184,7 +184,7 @@ export const Community: React.FC = () => { title={pageTitle} {...(walletBased ? { - description: t('explore.explorer.walletBased'), + description: t('governance.type.walletBased'), primaryBtnProps: { label: t('labels.manageMember'), onClick: handlePrimaryClick, @@ -192,12 +192,12 @@ export const Community: React.FC = () => { } : !isGovernanceEnabled ? { - description: t('explore.explorer.tokenBased'), + description: t('governance.type.tokenBased'), secondaryBtnProps: seeAllHoldersBtn, } : isDAOTokenWrapped ? { - description: t('explore.explorer.tokenBased'), + description: t('governance.type.tokenBased'), primaryBtnProps: { label: t('governance.actionSecondary'), iconLeft: , @@ -211,7 +211,7 @@ export const Community: React.FC = () => { } : isTokenMintable ? { - description: t('explore.explorer.tokenBased'), + description: t('governance.type.tokenBased'), primaryBtnProps: { label: t('governance.actionSecondary'), iconLeft: , @@ -225,7 +225,7 @@ export const Community: React.FC = () => { tertiaryBtnProps: seeAllHoldersBtn, } : { - description: t('explore.explorer.tokenBased'), + description: t('governance.type.tokenBased'), primaryBtnProps: { label: t('governance.actionSecondary'), iconLeft: , diff --git a/src/pages/dashboard.tsx b/src/pages/dashboard.tsx index 7ec47f119..639c5d3c3 100644 --- a/src/pages/dashboard.tsx +++ b/src/pages/dashboard.tsx @@ -304,8 +304,8 @@ export const Dashboard: React.FC = () => { if (liveDao && liveAddressOrEns) { const daoType = (liveDao?.plugins[0]?.id as PluginTypes) === 'multisig.plugin.dao.eth' - ? t('explore.explorer.walletBased') - : t('explore.explorer.tokenBased'); + ? t('governance.type.walletBased') + : t('governance.type.tokenBased'); const links = liveDao.metadata?.links