-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First take at send flow refactor, working (#509)
* Refactor send flow to fit multisig flow * Improve send flow user experience Co-authored-by: Alex Singh <[email protected]>
- Loading branch information
1 parent
80d9f1b
commit 32f294d
Showing
18 changed files
with
6,065 additions
and
3,704 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { layout, space, flexbox, position } from 'styled-system' | ||
import styled from 'styled-components' | ||
|
||
const Form = styled.form` | ||
width: 100%; | ||
display: flex; | ||
flex: 1; | ||
flex-direction: column; | ||
align-items: center; | ||
${position} | ||
${space} | ||
${layout} | ||
${flexbox} | ||
` | ||
|
||
export default Form |
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
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,41 @@ | ||
import React from 'react' | ||
import PropTypes from 'prop-types' | ||
|
||
import { Text } from '../../Shared' | ||
import { LEDGER } from '../../../constants' | ||
|
||
const HeaderText = ({ step, customizingGas, walletType }) => { | ||
let text = '' | ||
|
||
switch (step) { | ||
case 1: | ||
text = | ||
"First, please confirm the account you're sending from, and the recipient you want to send to." | ||
break | ||
case 2: | ||
text = "Next, please choose an amount of FIL you'd like to withdraw." | ||
break | ||
case 3: | ||
text = 'Please review the transaction details.' | ||
break | ||
case 4: | ||
if (walletType === LEDGER) | ||
text = 'Please confirm the transaction on your Ledger device.' | ||
break | ||
default: | ||
text = '' | ||
} | ||
|
||
if (customizingGas) | ||
text = 'Please select the custom gas fee for this transaction.' | ||
|
||
return <Text textAlign='center'>{text}</Text> | ||
} | ||
|
||
HeaderText.propTypes = { | ||
step: PropTypes.number.isRequired, | ||
customizingGas: PropTypes.bool.isRequired, | ||
walletType: PropTypes.string.isRequired | ||
} | ||
|
||
export default HeaderText |
Oops, something went wrong.