forked from binary-com/deriv-app
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TRAH] shontzu/TRAH-3097/Change-dxtrade-password-modal (binary-com#14292
) * chore: init password policy component * refactor: refactor 1 * chore: todo: success modal * fix: successmodal and closeModal * fix: PR Test Workflow complains * chore: code reviews * chore: code review 2 * fix: dxtrade enter password modal props * chore: this komen Co-authored-by: thisyahlen <104053934+thisyahlen-deriv@users.noreply.github.com> * chore: this komen * chore: formatting, sorting, and moving passwordChecklist to constant file * chore: import Fragment from React * chore: code reviews - handleSubmit async functions improperly used - do not modify password regex use as it is from BE - early return statement * fix: dxtrade password modal * chore: komen * refactor: useQueryParams for password modals * fix: dxtrade create password modal icon * fix: mt5 account creation bug * fix: api calls that is dependent on another must async * style: disable Forgot Password button on loading state * chore: replace arrow func w callback func --------- Co-authored-by: thisyahlen <104053934+thisyahlen-deriv@users.noreply.github.com>
- Loading branch information
1 parent
e389429
commit ea1da6b
Showing
16 changed files
with
86 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 15 additions & 11 deletions
26
...es/tradershub/src/features/cfd/modals/DxtradePasswordModal/DxtradeCreateAccountButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 0 additions & 42 deletions
42
packages/tradershub/src/features/cfd/modals/DxtradePasswordModal/DxtradePasswordInput.tsx
This file was deleted.
Oops, something went wrong.
30 changes: 11 additions & 19 deletions
30
packages/tradershub/src/features/cfd/modals/DxtradePasswordModal/DxtradePasswordModal.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
packages/tradershub/src/modals/DxtradeSuccessModal/DxtradeSuccessModal.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React from 'react'; | ||
import DxtradeSuccess from '@/features/cfd/modals/DxtradePasswordModal/DxtradeSuccess'; | ||
import { useQueryParams } from '@/hooks'; | ||
import { Modal } from '@deriv-com/ui'; | ||
|
||
const MT5SuccessModal = () => { | ||
const { isModalOpen, closeModal } = useQueryParams(); | ||
return ( | ||
<Modal ariaHideApp={false} isOpen={isModalOpen('DxtradeSuccessModal')} onRequestClose={closeModal}> | ||
<Modal.Body> | ||
<DxtradeSuccess /> | ||
</Modal.Body> | ||
</Modal> | ||
); | ||
}; | ||
|
||
export default MT5SuccessModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default as DxtradeSuccessModal } from './DxtradeSuccessModal'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters