Skip to content

Commit

Permalink
Merge pull request #3115 from near/transfer-wizard-doc-cta
Browse files Browse the repository at this point in the history
Add Call To Action Button on Transfer Wizard Doc
  • Loading branch information
hcho112 committed Jan 10, 2024
2 parents fe385c8 + 0485590 commit 803f797
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
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>
);
};

0 comments on commit 803f797

Please sign in to comment.