forked from deriv-com/deriv-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from suisin-deriv/suisin/WALL884/add_country_i…
…n_poi_modal chore: include country selection in POI for EU users
- Loading branch information
Showing
10 changed files
with
509 additions
and
3 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
packages/account/src/Sections/Verification/ProofOfIdentity/index.js
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export default from './proof-of-identity.jsx'; | ||
export { default as ProofOfIdentity } from './proof-of-identity.jsx'; | ||
export { default as ProofOfIdentityContainer } from './proof-of-identity-container.jsx'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import verificationModal from './verification-modal'; | ||
|
||
export default verificationModal; |
59 changes: 59 additions & 0 deletions
59
packages/core/src/App/Containers/VerificationModal/verification-modal-content.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,59 @@ | ||
import React from 'react'; | ||
import { ProofOfIdentityContainer } from '@deriv/account'; | ||
import { AutoHeightWrapper } from '@deriv/components'; | ||
import { observer, useStore } from '@deriv/stores'; | ||
|
||
type TVerificationModal = { | ||
is_from_external?: boolean; | ||
onStateChange?: () => void; | ||
}; | ||
|
||
const VerificationModalContent = observer(({ is_from_external, onStateChange }: TVerificationModal) => { | ||
const { client, common, notifications, ui } = useStore(); | ||
const { | ||
account_status, | ||
account_settings, | ||
fetchResidenceList, | ||
getChangeableFields, | ||
is_switching, | ||
is_high_risk, | ||
is_withdrawal_lock, | ||
should_allow_authentication, | ||
is_virtual, | ||
updateAccountStatus, | ||
} = client; | ||
const { refreshNotifications } = notifications; | ||
const { app_routing_history, routeBackInApp } = common; | ||
|
||
return ( | ||
<AutoHeightWrapper default_height={200}> | ||
{({ setRef }) => ( | ||
<div ref={setRef} className='proof-of-identity'> | ||
<div className='proof-of-identity__main-container'> | ||
<ProofOfIdentityContainer | ||
height='620px' | ||
account_settings={account_settings} | ||
account_status={account_status} | ||
app_routing_history={app_routing_history} | ||
fetchResidenceList={fetchResidenceList} | ||
getChangeableFields={getChangeableFields} | ||
is_from_external={is_from_external} | ||
is_switching={is_switching} | ||
is_virtual={is_virtual} | ||
is_high_risk={is_high_risk} | ||
is_withdrawal_lock={is_withdrawal_lock} | ||
onStateChange={onStateChange} | ||
refreshNotifications={refreshNotifications} | ||
routeBackInApp={routeBackInApp} | ||
should_allow_authentication={should_allow_authentication} | ||
is_description_enabled | ||
updateAccountStatus={updateAccountStatus} | ||
/> | ||
</div> | ||
</div> | ||
)} | ||
</AutoHeightWrapper> | ||
); | ||
}); | ||
|
||
export default VerificationModalContent; |
Oops, something went wrong.