Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suisin/refactor: ts migration for idv-limited.jsx #30

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 IdvNoSubmissions = ({ handleRequireSubmission }) => {
type TIdvNoSubmission = {
handleRequireSubmission: () => void;
};

const IdvNoSubmissions = ({ handleRequireSubmission }: TIdvNoSubmission) => {
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 IdvNoSubmissions from './idv-limited.jsx';
import IdvNoSubmissions from './idv-limited';

export default IdvNoSubmissions;
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