-
Notifications
You must be signed in to change notification settings - Fork 215
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
(Feature) Toaster on contract download #340
Conversation
Depends on #336 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great feature. Few minor changes.
src/components/invest/index.js
Outdated
@@ -19,6 +20,11 @@ export class Invest extends React.Component { | |||
state.loading = true; | |||
state.pristineTokenInput = true; | |||
this.state = state; | |||
|
|||
this.alertOptions = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extract to variable in constants file and import
src/components/stepFour/index.js
Outdated
const { PUBLISH } = NAVIGATION_STEPS | ||
|
||
export class stepFour extends stepTwo { | ||
constructor(props) { | ||
super(props); | ||
let oldState = getOldState(props, defaultState) | ||
this.state = Object.assign({}, oldState) | ||
this.alertOptions = { time: 10000, position: 'top right' } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extract and as variable to constant file
src/components/stepFour/index.js
Outdated
@@ -497,6 +498,8 @@ export class stepFour extends stepTwo { | |||
transferOwnership(web3, this.state.contracts.token.abi, contracts.token.addr, this.state.crowdsale[0].walletAddress, 46699, (err) => { | |||
if (err) return this.hideLoader(); | |||
this.hideLoader(); | |||
this.downloadCrowdsaleInfo(); | |||
this.showToaster({ message: 'A file with contracts and metadata downloaded on your computer' }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extract message to constant
(SYNC) toaster-on-contract-download <- master
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved. Constants are created.
Closes #270