-
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.
feat(borrow): move react transition to flyout
- Loading branch information
Philip London
committed
Feb 14, 2020
1 parent
c467edd
commit 4a2926c
Showing
12 changed files
with
195 additions
and
73 deletions.
There are no files selected for viewing
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
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
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
45 changes: 45 additions & 0 deletions
45
packages/blockchain-wallet-v4-frontend/src/modals/Borrow/AddCollateral/index.tsx
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,45 @@ | ||
import { actions } from 'data' | ||
import { bindActionCreators, Dispatch } from 'redux' | ||
import { connect } from 'react-redux' | ||
import { FlyoutWrapper } from 'components/Flyout' | ||
import { LoanType } from 'core/types' | ||
import React, { Component } from 'react' | ||
|
||
type LinkDispatchPropsType = { | ||
borrowActions: typeof actions.components.borrow | ||
} | ||
type OwnProps = { | ||
loan: LoanType | ||
} | ||
type Props = OwnProps & LinkDispatchPropsType | ||
type State = {} | ||
|
||
export class AddCollateral extends Component<Props, State> { | ||
state = {} | ||
|
||
render () { | ||
return ( | ||
<FlyoutWrapper | ||
onClick={() => | ||
this.props.borrowActions.setStep({ | ||
step: 'DETAILS', | ||
loan: this.props.loan | ||
}) | ||
} | ||
> | ||
Go Back | ||
</FlyoutWrapper> | ||
) | ||
} | ||
} | ||
|
||
const mapStateToProps = state => ({}) | ||
|
||
const mapDispatchToProps = (dispatch: Dispatch): LinkDispatchPropsType => ({ | ||
borrowActions: bindActionCreators(actions.components.borrow, dispatch) | ||
}) | ||
|
||
export default connect( | ||
mapStateToProps, | ||
mapDispatchToProps | ||
)(AddCollateral) |
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
3 changes: 1 addition & 2 deletions
3
packages/blockchain-wallet-v4-frontend/src/modals/Borrow/BorrowDetails/Header/index.tsx
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
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
3 changes: 1 addition & 2 deletions
3
packages/blockchain-wallet-v4-frontend/src/modals/Borrow/BorrowDetails/NewLoanInfo/index.tsx
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
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
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
4 changes: 2 additions & 2 deletions
4
packages/blockchain-wallet-v4-frontend/src/modals/Borrow/BorrowDetails/template.success.tsx
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
Oops, something went wrong.