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.
feat(wallets): 🎨 add poipoadocssubmitted screen, fix logic for resubm…
…ission (deriv-com#15341)
- Loading branch information
1 parent
8a9b60a
commit fbedb3e
Showing
5 changed files
with
93 additions
and
26 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
packages/wallets/src/features/accounts/screens/PoiPoaDocsSubmitted/PoiPoaDocsSubmitted.scss
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,13 @@ | ||
.wallets-poi-poa-submitted { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 99.6rem; | ||
height: 60rem; | ||
|
||
@include mobile { | ||
width: 100%; | ||
height: 100%; | ||
padding: 0 1.6rem; | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
packages/wallets/src/features/accounts/screens/PoiPoaDocsSubmitted/PoiPoaDocsSubmitted.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,36 @@ | ||
import React, { useEffect } from 'react'; | ||
import { useInvalidateQuery } from '@deriv/api-v2'; | ||
import { DerivLightWaitingPoiIcon } from '@deriv/quill-icons'; | ||
import { WalletButton, WalletsActionScreen } from '../../../../components'; | ||
import { useModal } from '../../../../components/ModalProvider'; | ||
import './PoiPoaDocsSubmitted.scss'; | ||
|
||
const PoiPoaDocsSubmitted = () => { | ||
const invalidate = useInvalidateQuery(); | ||
const { hide } = useModal(); | ||
|
||
// need invalidate queries in order to update status badge of CFD account | ||
useEffect(() => { | ||
return () => { | ||
invalidate('get_account_status'); | ||
invalidate('mt5_login_list'); | ||
}; | ||
}, [invalidate]); | ||
|
||
return ( | ||
<div className='wallets-poi-poa-submitted'> | ||
<WalletsActionScreen | ||
description="We'll review your documents and notify you of its status within 1 - 3 working days." | ||
icon={<DerivLightWaitingPoiIcon height={128} width={128} />} | ||
renderButtons={() => ( | ||
<WalletButton onClick={hide} size='lg'> | ||
Ok | ||
</WalletButton> | ||
)} | ||
title='Your documents were submitted successfully' | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default PoiPoaDocsSubmitted; |
1 change: 1 addition & 0 deletions
1
packages/wallets/src/features/accounts/screens/PoiPoaDocsSubmitted/index.ts
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 PoiPoaDocsSubmitted } from './PoiPoaDocsSubmitted'; |
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