Skip to content
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

Added Withdraw form #29

Closed
wants to merge 0 commits into from
Closed

Added Withdraw form #29

wants to merge 0 commits into from

Conversation

mghazanfar89
Copy link
Contributor

No description provided.

@katat
Copy link
Contributor

katat commented May 25, 2018

Thanks @mghazanfar89
It would be great if you can attach the comparing images between the actual look and the design, so easier for us to review.

@ghost
Copy link

ghost commented Jun 1, 2018

Actual vs Design
screenshot from 2018-06-01 14-50-15

@katat
Copy link
Contributor

katat commented Jun 4, 2018

Similar issues as https://github.com/hubiinetwork/omphalos-ui/pull/31
Also please have a check at the styles, the height/size etc.

return (
<Wrapper>
<Flex>
<FlexForm onSubmit={this.handleSubmit}>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be a single form for all the inputs and dropdowns of component rather than multiple forms

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

/**
* gas price in dollar for the component .
*/
gasDollar: PropTypes.number.isRequired,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove unused proptypes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

title="Available Balance"
info
balance={availableBalance}
showCoinName={availableBalanceCoin}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think balanceCoin and availableBalanceCoin will be same.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the same but I guess that there may exist some scenario where both are different. Hence keeping both of the props.

/**
* heading of the component .
*/
heading: PropTypes.string.isRequired,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra prop

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eradicated!

});
}

handleAccount(value) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use es6 functions

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding this, it's a good suggestion, I used to think ES6 classes should be used too. However FB recommends they are defined as methods, see facebook/react#9851

Please let's follow this convention where we can, thanks guys!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, Thanks

constructor(props) {
super(props);
this.state = {
amount: 1,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be from props e.g amount:props.amount || 1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added props.

@liamaharon liamaharon closed this Sep 12, 2018
@liamaharon liamaharon deleted the feature/withdrawal-form branch September 12, 2018 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants