Skip to content

Commit

Permalink
feat: added DocumentsList component
Browse files Browse the repository at this point in the history
  • Loading branch information
aum-deriv committed Sep 17, 2024
1 parent 80791d8 commit d19ae44
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import { DerivLightUploadPoiIcon } from '@deriv/quill-icons';
import { Localize } from '@deriv-com/translations';
import { SectionMessage, Text, useDevice } from '@deriv-com/ui';
import { Text, useDevice } from '@deriv-com/ui';
import { ModalStepWrapper } from '../../../../components';
import { DocumentTile } from './components';
import { DocumentsList } from './components';
import './ClientVerificationModal.scss';

const getDescriptionText = () => {
Expand All @@ -29,9 +29,7 @@ const ClientVerificationModal = () => {
<Text align='center' size={isMobile ? 'md' : 'sm'}>
{description}
</Text>
<DocumentTile title='Personal Details' />
<DocumentTile title='Personal Details' />
<DocumentTile title='Personal Details' />
<DocumentsList />
</div>
</ModalStepWrapper>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.wallets-documents-list {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
gap: 1.6rem;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from 'react';
import { DocumentTile } from './components';
import './DocumentsList.scss';

const DocumentsList = () => {
return (
<div className='wallets-documents-list'>
<DocumentTile title='Proof of identity' />

Check failure on line 8 in packages/wallets/src/features/cfd/modals/ClientVerificationModal/components/DocumentsList/DocumentsList.tsx

View workflow job for this annotation

GitHub Actions / Build And Test

Type '{ title: string; }' is missing the following properties from type 'TDocumentTileProps': badge, onClick
<DocumentTile title='Proof of address' />

Check failure on line 9 in packages/wallets/src/features/cfd/modals/ClientVerificationModal/components/DocumentsList/DocumentsList.tsx

View workflow job for this annotation

GitHub Actions / Build And Test

Type '{ title: string; }' is missing the following properties from type 'TDocumentTileProps': badge, onClick
<DocumentTile title='Personal Details' />

Check failure on line 10 in packages/wallets/src/features/cfd/modals/ClientVerificationModal/components/DocumentsList/DocumentsList.tsx

View workflow job for this annotation

GitHub Actions / Build And Test

Type '{ title: string; }' is missing the following properties from type 'TDocumentTileProps': badge, onClick
</div>
);
};

export default DocumentsList;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './DocumentTile';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as DocumentsList } from './DocumentsList';
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './DocumentTile';
export * from './DocumentsList';

0 comments on commit d19ae44

Please sign in to comment.