Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Call To Action Button on Transfer Wizard Doc #3115

Merged
merged 3 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/frontend/src/components/Routing.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,12 @@ class Routing extends Component {
<Route
exact
path="/transfer-wizard"
component={TransferWizardWrapper}
render={() => (
<TransferWizardWrapper
account={account}
onTransfer={() => this.handleTransferClick()}
/>
)}
/>
<Route
exact
Expand Down
12 changes: 11 additions & 1 deletion packages/frontend/src/routes/TransferWizardWrapper.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import styled from 'styled-components';

import FormButton from '../components/common/FormButton';
import Container from '../components/common/styled/Container.css';
import logOutImg from '../images/wallet-migration/screenshots/log-out.png';
import transferAccountsImg from '../images/wallet-migration/screenshots/transfer-your-accounts.png';
Expand Down Expand Up @@ -28,8 +29,12 @@ const ScreenshotImg = styled.img`
width: 300px;
`;

const CallToAction = styled(FormButton)`
width: 100%;
`;


export const TransferWizardWrapper = () => {
export const TransferWizardWrapper = ({ onTransfer, account }) => {
return (
<Container>
<h1 >Migrating from Near Wallet</h1>
Expand Down Expand Up @@ -171,6 +176,11 @@ export const TransferWizardWrapper = () => {
</ImageTd>
</tr>
</Table>
{
account?.localStorage?.accountFound && (
<CallToAction onClick={onTransfer}>Transfer Accounts</CallToAction>
)
}
</ Container>
);
};