Skip to content

Commit

Permalink
fix(APP-3649): Restore deleted DAO type strings (#1411)
Browse files Browse the repository at this point in the history
  • Loading branch information
thekidnamedkd authored Oct 30, 2024
1 parent b8fd00d commit ca8124e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
4 changes: 4 additions & 0 deletions src/assets/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}}",
Expand Down
8 changes: 4 additions & 4 deletions src/containers/membershipSnapshot/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ export const MembershipSnapshot: React.FC<Props> = ({
)}`}
label={
walletBased
? t('explore.explorer.walletBased')
: t('explore.explorer.tokenBased')
? t('governance.type.walletBased')
: t('governance.type.tokenBased')
}
buttonText={
walletBased
Expand Down Expand Up @@ -128,8 +128,8 @@ export const MembershipSnapshot: React.FC<Props> = ({
)}`}
label={
walletBased
? t('explore.explorer.walletBased')
: t('explore.explorer.tokenBased')
? t('governance.type.walletBased')
: t('governance.type.tokenBased')
}
buttonText={
walletBased
Expand Down
10 changes: 5 additions & 5 deletions src/pages/community.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,20 +184,20 @@ 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,
},
}
: !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: <Icon icon={IconType.APP_PROPOSALS} />,
Expand All @@ -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: <Icon icon={IconType.APP_PROPOSALS} />,
Expand All @@ -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: <Icon icon={IconType.APP_PROPOSALS} />,
Expand Down
4 changes: 2 additions & 2 deletions src/pages/dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca8124e

Please sign in to comment.