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

Prince/Purchase section refactor #800

Merged
merged 44 commits into from
Aug 20, 2024

Conversation

prince-deriv
Copy link
Contributor

No description provided.

@prince-deriv prince-deriv requested a review from a team as a code owner August 14, 2024 12:14
<div className='purchase-body-box'>
<div className='purchase-amount-box'>
<div className='purchase-amount-info-box'>
<Text size='md'>{localize('Stake')}:</Text>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<Text size='md'>{localize('Stake')}:</Text>
<Text>{localize('Stake')}:</Text>

nit-pick: not sure if it's in scope of this PR but size='md' can be removed from all Text's as it's a default value :)

@@ -191,15 +191,15 @@ export const FormComponent = () => {
options={start_dates.options}
value={findTextByValue(start_dates.options, date_start)}
onUpdate={updateFormField}
elementId='date_start'
element_id='date_start'
Copy link
Contributor

Choose a reason for hiding this comment

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

please help to update the elementId prop to element_id in DropdownComponent as well. This can break the functionality.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For DropdownComponent and NumbersDropdown I kept it elementId because it's a prop.

Copy link
Contributor

Choose a reason for hiding this comment

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

@prince-deriv I think you missed to revert the change here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Nuzhy-Deriv please check one more time

src/javascript/app/pages/bottom/explanation.jsx Outdated Show resolved Hide resolved
src/javascript/app/pages/trade/price.js Show resolved Hide resolved
src/javascript/app/pages/trade/analysis.js Outdated Show resolved Hide resolved
src/javascript/app/pages/trade/purchase/purchase.jsx Outdated Show resolved Hide resolved
Copy link

Preview Link: https://pr-800.smarttrader-preview.pages.dev

Name Result
Build status Completed ✅
Preview URL Visit Preview
Action URL Visit Action

@prince-deriv prince-deriv merged commit 0104066 into deriv-com:master Aug 20, 2024
4 checks passed
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.

7 participants