Skip to content

Commit

Permalink
fix for mode selection text
Browse files Browse the repository at this point in the history
  • Loading branch information
igorgoldobin committed Jan 8, 2025
1 parent 51cf25f commit b587200
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 174 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ export const _AcknowledgementProgressTracker = ({
[AcknowledgementIdsEnum.keyManagement]: formatMessage({
defaultMessage: 'Key management',
}),
[AcknowledgementIdsEnum.earlyAdoptionRisks]: formatMessage({
defaultMessage: 'Early adoption risks',
}),
[AcknowledgementIdsEnum.checklist]: formatMessage({
defaultMessage: 'Checklist',
}),
Expand Down
145 changes: 0 additions & 145 deletions src/pages/Acknowledgements/index copy.tsx

This file was deleted.

6 changes: 3 additions & 3 deletions src/pages/Acknowledgements/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ const _AcknowledgementPage = ({
</Subtitle>
<Paper className="flex flex-column">
<Accordion>
{acknowledgementIdsArray.filter(value => value !== AcknowledgementIdsEnum.confirmation && value !== AcknowledgementIdsEnum.terminal).map((value) => (
<AccordionItem title={steps[value].title}>
{acknowledgementIdsArray.filter(value => value !== AcknowledgementIdsEnum.confirmation && value !== AcknowledgementIdsEnum.terminal).map((value) => (
<AccordionItem title={steps[value].title}>
<AcknowledgementSection
showTitle={false}
handleContinueClick={handleContinueClick}
Expand All @@ -145,7 +145,7 @@ const _AcknowledgementPage = ({
acknowledgementId={value}
acknowledgementText={steps[value].acknowledgementText}
/>
</AccordionItem>
</AccordionItem>
))}
</Accordion>
<AcknowledgementFooter>
Expand Down
18 changes: 0 additions & 18 deletions src/pages/Acknowledgements/pageContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,24 +193,6 @@ export const pageContent = {
/>
),
},
[AcknowledgementIdsEnum.earlyAdoptionRisks]: {
title: <FormattedMessage defaultMessage="Early adopter risks" />,
content: (
<Text size="medium" className="my10">
<FormattedMessage
defaultMessage="You're joining a network in its early stages. As with any new piece of software,
there is the potential for software bugs. While unlikely, potential bugs may
result in slashing."
/>
</Text>
),
acknowledgementText: (
<FormattedMessage
defaultMessage="I am an early adopter, and I accept that software and design bugs may
result in me being slashed."
/>
),
},
[AcknowledgementIdsEnum.terminal]: {
title: <FormattedMessage defaultMessage="Using the terminal" />,
content: (
Expand Down
29 changes: 26 additions & 3 deletions src/pages/SelectMode/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { useHistory } from 'react-router-dom';
import { Link } from '../../components/Link';
import { PageTemplate } from '../../components/PageTemplate';
import { Heading } from '../../components/Heading';
import { Text } from '../../components/Text';

import { routesEnum } from '../../Routes';

Expand Down Expand Up @@ -97,7 +98,7 @@ export const SelectModePage = () => {
<FormattedMessage defaultMessage="Option 1" />
</Heading>
<BoldGreen>
<FormattedMessage defaultMessage="One-Click" />
<FormattedMessage defaultMessage="One-Click Setup" />
</BoldGreen>
</div>
{formArrow}
Expand All @@ -115,13 +116,35 @@ export const SelectModePage = () => {
<FormattedMessage defaultMessage="Option 2" />
</Heading>
<BoldGreen>
<FormattedMessage defaultMessage="Manual setup" />
<FormattedMessage defaultMessage="Traditional Setup" />
</BoldGreen>
</div>
{formArrow}
</Card>
</StyledLink>
</CardContainer>
</CardContainer>
<Heading level={3} className="mt30">
<FormattedMessage defaultMessage="One-Click Setup" />
</Heading>
<Text className="mt10">
<FormattedMessage defaultMessage="Ideal for those who want to get started quickly or have less technical experience" />
<ul>
<li>Automated installation and configuration</li>
<li>Fewer manual steps</li>
<li>Standardized deployment</li>
</ul>
</Text>
<Heading level={3} className="mt20">
<FormattedMessage defaultMessage="Traditional Setup" />
</Heading>
<Text className="mt10">
<FormattedMessage defaultMessage="This method may be preferred by more experienced users who want granular control" />
<ul>
<li>Ethereum Staking Process</li>
<li>Manual Node Configuration</li>
<li>Greater Control</li>
</ul>
</Text>
</PageTemplate>
);
};
2 changes: 0 additions & 2 deletions src/store/reducers/acknowledgementReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export enum AcknowledgementIdsEnum {
responsibilities,
slashing,
keyManagement,
earlyAdoptionRisks,
checklist,
confirmation,
}
Expand All @@ -23,7 +22,6 @@ const defaultAcknowledgementState: AcknowledgementStateInterface = {
[AcknowledgementIdsEnum.responsibilities]: false,
[AcknowledgementIdsEnum.slashing]: false,
[AcknowledgementIdsEnum.keyManagement]: false,
[AcknowledgementIdsEnum.earlyAdoptionRisks]: false,
[AcknowledgementIdsEnum.checklist]: false,
[AcknowledgementIdsEnum.confirmation]: false,
};
Expand Down

0 comments on commit b587200

Please sign in to comment.