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

PR for Creating investing page on crypto site #158

Merged
merged 15 commits into from
Mar 14, 2021
Merged

Conversation

Rucha1499
Copy link
Contributor

@Rucha1499 Rucha1499 commented Feb 28, 2021

Create an investing page where users can buys and sell stocks. Fixes #72

The input fields stock Name and Listed Price are prefilled when clicked on BUY/SELL buttons.

Subsequent PRs - #186 - Adds validations for user login, wallet and enough money
image

image

image

@ankushdharkar ankushdharkar temporarily deployed to crypto-pipel-investing--odamc9 February 28, 2021 06:38 Inactive
@ankushdharkar ankushdharkar temporarily deployed to crypto-pipel-investing--odamc9 March 10, 2021 07:01 Inactive
@ankushdharkar ankushdharkar temporarily deployed to crypto-pipel-investing--odamc9 March 10, 2021 07:14 Inactive
@Rucha1499 Rucha1499 requested a review from sumitd94 March 10, 2021 07:17
@Rucha1499 Rucha1499 changed the title [WIP] pr for investing page on crypto site Creating investing page on crypto site Mar 10, 2021
@ankushdharkar ankushdharkar temporarily deployed to crypto-pipel-investing--odamc9 March 10, 2021 17:31 Inactive
@ankushdharkar ankushdharkar temporarily deployed to crypto-pipel-investing--odamc9 March 10, 2021 17:44 Inactive
}
.shoppinglist-container {
display: flex;
flex-direction: row;
Copy link
Contributor

Choose a reason for hiding this comment

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

NIT: Not needed, by default it takes the direction as row

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!!👍

Comment on lines 17 to 19
{stock.map((itemName) => {
return <Card key={itemName} stock={stockData[itemName]} />;
})}
Copy link
Contributor

Choose a reason for hiding this comment

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

since you are returning only 1 line of code, you can transform this like this

{stock.map((itemName) => <Card key={itemName} stock={stockData[itemName]} />)}

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 will do the changes. Thanks for the review😀

Copy link

Choose a reason for hiding this comment

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

May consider below to please the human eyes
{ stock.map( itemName => <Card key = {itemName} stock = { stockData[itemName] } />) }

@Rucha1499 Rucha1499 changed the title Creating investing page on crypto site [WIP] PR for Creating investing page on crypto site Mar 11, 2021
@ankushdharkar ankushdharkar temporarily deployed to crypto-pipel-investing--odamc9 March 11, 2021 05:08 Inactive
@Rucha1499 Rucha1499 added frontend WIP This PR is still work in progress labels Mar 11, 2021
@ankushdharkar ankushdharkar temporarily deployed to crypto-pipel-investing--odamc9 March 11, 2021 15:00 Inactive
@ankushdharkar ankushdharkar temporarily deployed to crypto-pipel-investing--odamc9 March 11, 2021 17:24 Inactive
@ankushdharkar ankushdharkar temporarily deployed to crypto-pipel-investing--odamc9 March 12, 2021 19:07 Inactive
@ankushdharkar ankushdharkar temporarily deployed to crypto-pipel-investing--odamc9 March 14, 2021 16:56 Inactive
@ankushdharkar ankushdharkar temporarily deployed to crypto-pipel-investing--odamc9 March 14, 2021 20:16 Inactive
@ankushdharkar ankushdharkar temporarily deployed to crypto-pipel-investing--odamc9 March 14, 2021 22:26 Inactive
@ankushdharkar ankushdharkar temporarily deployed to crypto-pipel-investing--odamc9 March 14, 2021 22:41 Inactive
@swarajpure swarajpure changed the title [WIP] PR for Creating investing page on crypto site PR for Creating investing page on crypto site Mar 14, 2021
swarajpure
swarajpure previously approved these changes Mar 14, 2021
Copy link
Contributor

@swarajpure swarajpure left a comment

Choose a reason for hiding this comment

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

FTL Rocks! ⚡

@ankushdharkar ankushdharkar temporarily deployed to crypto-pipel-investing--odamc9 March 14, 2021 22:59 Inactive
@sumitd94 sumitd94 merged commit 54ee4a9 into develop Mar 14, 2021
@swarajpure swarajpure deleted the investing-page branch June 25, 2021 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend WIP This PR is still work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create an investing page on crypto site for users to buy stocks.
5 participants