-
Notifications
You must be signed in to change notification settings - Fork 0
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
[TRAH] shontzu/TRAH-2643/MT5PasswordModal-improvement #24
[TRAH] shontzu/TRAH-2643/MT5PasswordModal-improvement #24
Conversation
…/TRAH-2643/MT5PasswordModal-improvement-2
…/TRAH-2643/MT5PasswordModal-improvement-2
…shontzu/TRAH-2643/improvement-3
00cb0a4
to
6882623
Compare
password, | ||
marketType, | ||
activeTrading, | ||
mutate, |
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.
tradingPasswordChange,
mutate,
activeTrading,
settings,
These are coming from deriv/api
so we can directly call them here instead of passing props
selectedJurisdiction, | ||
availableMT5Accounts | ||
) => { | ||
const accountType = marketType === MarketType.SYNTHETIC ? 'gaming' : marketType; |
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.
Can use constant file here for gaming
but its upto you
Its a small nit but it is hardcoded value
|
||
// in order to create account, we need to set a password through trading_platform_password_change endpoint first | ||
// then only mt5_create_account can be called, otherwise it will response an error for password required | ||
if (isMT5PasswordNotSet) { |
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.
can get this from deriv/api
…643/MT5PasswordModal-improvement-3
Changes:
split massive
MT5PasswordModal
file into smaller componentsScreenshots: