Skip to content

Commit

Permalink
Merge pull request #20 from suisin-deriv/suisin/74140/ts_mirgration_i…
Browse files Browse the repository at this point in the history
…dv_rejected

Suisin/ts migration for idv-rejected
  • Loading branch information
shayan-deriv authored Nov 17, 2022
2 parents f48765b + 8a88a16 commit e81e12e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/account/globals.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module '*.svg' {
const content: any;
export default content;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ import { Button, Text } from '@deriv/components';
import { localize } from '@deriv/translations';
import IdvDocumentRejected from 'Assets/ic-idv-document-rejected.svg';

const IdvRejected = ({ handleRequireSubmission }) => {
type TIdvRejected = {
handleRequireSubmission: () => void;
};

const IdvRejected = ({ handleRequireSubmission }: TIdvRejected) => {
return (
<div className='proof-of-identity__container'>
<IdvDocumentRejected className='icon' size={128} />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import IdvRejected from './idv-rejected.jsx';
import IdvRejected from './idv-rejected';

export default IdvRejected;
1 change: 1 addition & 0 deletions packages/account/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"outDir": "./dist",
"baseUrl": "./",
"paths": {
"Assets/*": ["src/Assets/*"],
"Components/*": ["src/Components/*"],
"Containers/*": ["src/Containers/*"],
"Constants/*": ["src/Constants/*"],
Expand Down

0 comments on commit e81e12e

Please sign in to comment.