-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b8c4589
commit 49b8b65
Showing
2 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
...allet-v4-frontend/src/scenes/BuySell/CoinifyCheckout/Content/Sell/SelectAccounts/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from 'react' | ||
import { connect } from 'react-redux' | ||
|
||
import SelectAccounts from './template.js' | ||
|
||
class SelectAccountsContainer extends React.PureComponent { | ||
constructor (props) { | ||
super(props) | ||
this.onSubmit = this.onSubmit.bind(this) | ||
} | ||
|
||
onSubmit (e) { | ||
e.preventDefault() | ||
// TODO: Store form data in the state | ||
} | ||
|
||
render () { | ||
return <SelectAccounts {...this.props} onSubmit={this.onSubmit} /> | ||
} | ||
} | ||
|
||
const mapStateToProps = (state) => ({ | ||
}) | ||
|
||
const mapDispatchToProps = (dispatch) => ({ | ||
}) | ||
|
||
export default connect(mapStateToProps, mapDispatchToProps)(SelectAccountsContainer) |
61 changes: 61 additions & 0 deletions
61
...et-v4-frontend/src/scenes/BuySell/CoinifyCheckout/Content/Sell/SelectAccounts/template.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import React from 'react' | ||
import { reduxForm } from 'redux-form' | ||
import { FormattedMessage } from 'react-intl' | ||
import styled from 'styled-components' | ||
import { Button, Link } from 'blockchain-info-components' | ||
|
||
import { spacing } from 'services/StyleService' | ||
import { StepTransition } from 'components/Utilities/Stepper' | ||
import { Form, ColLeft, InputWrapper, PartnerHeader, PartnerSubHeader, ColRight, ColRightInner } from 'components/BuySell/Signup' | ||
|
||
const CancelWrapper = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
a { | ||
color: #545456; | ||
font-weight: 300; | ||
font-size: 14px; | ||
} | ||
` | ||
const BorderBox = styled.div` | ||
border: 1px solid ${props => props.theme['gray-1']}; | ||
padding: 30px; | ||
` | ||
|
||
const SelectAccounts = (props) => { | ||
const { invalid, submitting } = props | ||
return ( | ||
<Form> | ||
<ColLeft> | ||
<BorderBox> | ||
<InputWrapper style={spacing('mb-40')}> | ||
<PartnerHeader> | ||
<FormattedMessage id='coinifyexchangedata.selectaccounts.header' defaultMessage='Select Accounts' /> | ||
</PartnerHeader> | ||
<PartnerSubHeader> | ||
<FormattedMessage id='coinifyexchangedata.selectaccounts.subheader' defaultMessage='Where would you like your funds sent? You have the following bank accounts linked: ' /> | ||
</PartnerSubHeader> | ||
</InputWrapper> | ||
<StepTransition next Component={Button} style={spacing('mt-45')} nature='primary' fullwidth disabled={submitting || invalid}> | ||
<FormattedMessage id='coinifyexchangedata.selectaccounts.continue' defaultMessage='Add new account' /> | ||
</StepTransition> | ||
</BorderBox> | ||
</ColLeft> | ||
<ColRight> | ||
<ColRightInner> | ||
<StepTransition next Component={Button} style={spacing('mt-45')} nature='primary' fullwidth disabled={submitting || invalid}> | ||
<FormattedMessage id='coinifyexchangedata.selectaccounts.continue' defaultMessage='Continue' /> | ||
</StepTransition> | ||
<CancelWrapper style={spacing('mt-15')}> | ||
<StepTransition prev Component={Link}> | ||
<FormattedMessage id='back' defaultMessage='Back' /> | ||
</StepTransition> | ||
</CancelWrapper> | ||
</ColRightInner> | ||
</ColRight> | ||
</Form> | ||
) | ||
} | ||
|
||
export default reduxForm({ form: 'coinifySelectAccounts' })(SelectAccounts) |