mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-20 16:09:28 +00:00
dfb93c16ab
* Increases Modal's width to better fit in the content. * Restore the image side behavior so that images are sometimes on the left, not always on the right * Allows modal to dynamically size its height. * This reduces some awkward whitespace, and makes it so you can't just jam on the "Next" button since it moves a bit, should slow some people down to at least catch the headlines. * Restore the alert style on the opening modal * Provide a mobile-friendly progress stepper. * This module's markup kind of sucks, so the restyling code is heinous. Sorry. * Scrolls the user to the top after hitting "Next" or "Previous" * On mobile, you would stay scrolled at the bottom. Much nicer feeling now. * Tons of text and content spacing / color / size adjustments.
101 lines
2.9 KiB
TypeScript
101 lines
2.9 KiB
TypeScript
import React from 'react';
|
|
import translate from 'translations';
|
|
import { Link } from 'react-router-dom';
|
|
import OnboardSlide from './OnboardSlide';
|
|
import onboardIconTen from 'assets/images/onboarding_icon-10.svg';
|
|
|
|
const FinalSlide = ({ closeModal }) => {
|
|
const header = translate('ONBOARD_final_title');
|
|
const subheader = translate('ONBOARD_final_subtitle');
|
|
|
|
const content = (
|
|
<ul>
|
|
<li>
|
|
<a
|
|
href="https://myetherwallet.github.io/knowledge-base/hardware-wallets/hardware-wallet-recommendations.html"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
className="strong"
|
|
>
|
|
{translate('ONBOARD_final_content__2')}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a
|
|
href="https://myetherwallet.github.io/knowledge-base/migration/moving-from-private-key-to-metamask.html"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
className="strong"
|
|
>
|
|
{translate('ONBOARD_final_content__3')}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a
|
|
href="https://myetherwallet.github.io/knowledge-base/offline/running-myetherwallet-locally.html"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
className="strong"
|
|
>
|
|
{translate('ONBOARD_final_content__4')}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a
|
|
href="https://myetherwallet.github.io/knowledge-base/migration/moving-from-private-key-to-ledger-hardware-wallet.html"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
className="strong"
|
|
>
|
|
{translate('ONBOARD_final_content__5')}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a
|
|
href="https://myetherwallet.github.io/knowledge-base/hardware-wallets/trezor-sending-to-trezor-device.html"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
className="strong"
|
|
>
|
|
{translate('ONBOARD_final_content__6')}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a
|
|
href="https://myetherwallet.github.io/knowledge-base/migration/moving-from-private-key-to-metamask.html"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
className="strong"
|
|
>
|
|
{translate('ONBOARD_final_content__7')}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a
|
|
href="https://myetherwallet.github.io/knowledge-base/"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
className="strong"
|
|
>
|
|
{translate('ONBOARD_final_content__8')}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<Link onClick={closeModal} to="/send-transaction" className="strong">
|
|
<span> {translate('ONBOARD_final_content__9')}</span>
|
|
</Link>
|
|
</li>
|
|
</ul>
|
|
);
|
|
return (
|
|
<OnboardSlide
|
|
header={header}
|
|
subheader={subheader}
|
|
content={content}
|
|
image={onboardIconTen}
|
|
imageSide="left"
|
|
/>
|
|
);
|
|
};
|
|
export default FinalSlide;
|