Skip to content

Commit

Permalink
moved incorporation dialog to advanced
Browse files Browse the repository at this point in the history
  • Loading branch information
agnieszkajarosikloj committed Jan 31, 2023
1 parent f704ee6 commit 164ee32
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 19 deletions.
1 change: 0 additions & 1 deletion src/img/icons.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"circle-thumbs-up-outlined",
"clny-token",
"clock",
"usd-coin",
"close",
"colony-logo",
"comment",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ const ColonyHomeActions = ({ colony, ethDomainId }: Props) => {
nextStepManageDomains: 'dashboard.ManageDomainsDialog',
nextStepAdvanced: 'dashboard.AdvancedDialog',
nextStepManageReputation: 'dashboard.ManageReputationDialog',
nextStepDAOInterporation: 'dashboard.DAOIncorporationDialog',
},
},
{
Expand Down Expand Up @@ -210,6 +209,7 @@ const ColonyHomeActions = ({ colony, ethDomainId }: Props) => {
nextStepRecovery: 'dashboard.RecoveryModeDialog',
nextStepEditDetails: 'dashboard.EditColonyDetailsDialog',
nextStepVersionUpgrade: 'dashboard.NetworkContractUpgradeDialog',
nextStepDAOIncorporation: 'dashboard.DAOIncorporationDialog',
colony,
isVotingExtensionEnabled,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,22 @@ const MSG = defineMessages({
defaultMessage:
'Want to interact with DeFi, or govern an external smart contract?',
},
incorporationTitle: {
id: 'dashboard.AdvancedDialog.incorporationTitle',
defaultMessage: 'DAO Incorporation',
},
incorporationDesc: {
id: 'dashboard.AdvancedDialog.incorporationDesc',
defaultMessage: `Setup a legal entity to extend functionality and protect contributors.`,
},
});

interface CustomWizardDialogProps extends ActionDialogProps {
nextStepPermissionManagement: string;
nextStepRecovery: string;
nextStepEditDetails: string;
nextStepVersionUpgrade: string;
nextStepDAOIncorporation: string;
prevStep: string;
colony: Colony;
}
Expand All @@ -107,6 +116,7 @@ const AdvancedDialog = ({
nextStepRecovery,
nextStepEditDetails,
nextStepVersionUpgrade,
nextStepDAOIncorporation,
colony,
colony: { version: colonyVersion },
isVotingExtensionEnabled,
Expand Down Expand Up @@ -187,6 +197,12 @@ const AdvancedDialog = ({
icon: 'emoji-dna',
comingSoon: true,
},
{
title: MSG.incorporationTitle,
description: MSG.incorporationDesc,
icon: 'flag',
onClick: () => callStep(nextStepDAOIncorporation),
},
];
return (
<IndexModal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,6 @@ const MSG = defineMessages({
defaultMessage:
'Need to tinker under the hood? This is the place to do it.',
},
DAOIncorporationTitle: {
id: 'dashboard.ColonyActionsDialog.DAOIncorporationTitle',
defaultMessage: 'DAO Incorporation',
},
DAOIncorporationDesc: {
id: 'dashboard.ColonyActionsDialog.DAOIncorporationDesc',
defaultMessage: `Setup a legal entity to extend functionality and protect contributors.`,
},
});

interface CustomWizardDialogProps {
Expand All @@ -68,7 +60,6 @@ interface CustomWizardDialogProps {
nextStepManageDomains: string;
nextStepAdvanced: string;
nextStepManageReputation: string;
nextStepDAOInterporation: string;
}

type Props = DialogProps & WizardDialogType<object> & CustomWizardDialogProps;
Expand All @@ -84,7 +75,6 @@ const ColonyActionsDialog = ({
nextStepManageDomains,
nextStepAdvanced,
nextStepManageReputation,
nextStepDAOInterporation,
}: Props) => {
const items = [
{
Expand Down Expand Up @@ -122,13 +112,6 @@ const ColonyActionsDialog = ({
onClick: () => callStep(nextStepAdvanced),
dataTest: 'advancedDialogIndexItem',
},
{
title: MSG.DAOIncorporationTitle,
description: MSG.DAOIncorporationDesc,
icon: 'flag',
onClick: () => callStep(nextStepDAOInterporation),
dataTest: 'nextStepDAOInterporation',
},
];
return (
<IndexModal cancel={cancel} close={close} title={MSG.title} items={items} />
Expand Down

0 comments on commit 164ee32

Please sign in to comment.