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

Shayan/80609/components shared ts migration parent #7294

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
231 commits
Select commit Hold shift + click to select a range
613e011
checking circle/ci test
Jul 11, 2022
2dc542b
removed test changes
Jul 11, 2022
3088a3b
Merge branch 'binary-com:master' into master
shayan-deriv Jul 12, 2022
321e537
Merge branch 'binary-com:master' into master
shayan-deriv Jul 13, 2022
38dfce8
Merge branch 'master' of https://github.com/binary-com/deriv-app
Jul 13, 2022
21a7c64
Merge branch 'binary-com:master' into master
shayan-deriv Jul 19, 2022
cbf5de9
Merge branch 'binary-com:master' into master
shayan-deriv Jul 21, 2022
6882b1d
Merge branch 'binary-com:master' into master
shayan-deriv Jul 21, 2022
c800916
Merge branch 'binary-com:master' into master
shayan-deriv Jul 21, 2022
af4c871
Merge branch 'master' of https://github.com/binary-com/deriv-app
Jul 25, 2022
d4fedbe
Merge branch 'master' of github.com:iman-fs/deriv-app
Jul 25, 2022
308df7c
Merge branch 'master' of https://github.com/binary-com/deriv-app
Jul 26, 2022
06d8d2a
Merge branch 'binary-com:master' into master
shayan-deriv Jul 28, 2022
9564888
Merge branch 'binary-com:master' into master
shayan-deriv Jul 28, 2022
d217eb4
Merge branch 'binary-com:master' into master
shayan-deriv Aug 2, 2022
cf021d2
Merge branch 'master' of https://github.com/binary-com/deriv-app
Aug 2, 2022
45c53ac
Merge branch 'master' of github.com:iman-fs/deriv-app
Aug 2, 2022
fcfc904
Merge branch 'binary-com:master' into master
shayan-deriv Aug 3, 2022
77a5aab
Merge branch 'master' of https://github.com/binary-com/deriv-app
Aug 4, 2022
8713764
Merge branch 'binary-com:master' into master
shayan-deriv Aug 4, 2022
8de30bd
Merge branch 'binary-com:master' into master
shayan-deriv Aug 5, 2022
f958136
Merge branch 'master' of github.com:iman-fs/deriv-app
Aug 9, 2022
d8fa7bf
Merge branch 'master' of https://github.com/binary-com/deriv-app
Aug 9, 2022
6887da9
Merge branch 'master' of https://github.com/binary-com/deriv-app
Aug 10, 2022
bf61789
Merge branch 'binary-com:master' into master
shayan-deriv Aug 10, 2022
9d2a8f3
Merge branch 'binary-com:master' into master
shayan-deriv Aug 14, 2022
d1a7e49
Merge branch 'master' of https://github.com/binary-com/deriv-app
Aug 15, 2022
6b38944
Merge branch 'binary-com:master' into master
shayan-deriv Aug 17, 2022
0f24d87
Merge branch 'binary-com:master' into master
shayan-deriv Aug 22, 2022
0a7019d
Merge branch 'binary-com:master' into master
shayan-deriv Aug 22, 2022
064fa80
Merge branch 'master' of github.com:binary-com/deriv-app
Aug 23, 2022
fc06876
Merge branch 'binary-com:master' into master
shayan-deriv Aug 24, 2022
db7672c
Merge branch 'binary-com:master' into master
shayan-deriv Aug 25, 2022
c614ad1
Merge branch 'master' of github.com:binary-com/deriv-app
Aug 31, 2022
0ed207c
Merge branch 'master' of github.com:binary-com/deriv-app
Sep 4, 2022
5303d92
Merge branch 'master' of github.com:binary-com/deriv-app
Oct 2, 2022
daffd0f
Merge branch 'master' of github.com:binary-com/deriv-app
Oct 6, 2022
f3dc20c
Merge branch 'master' of github.com:binary-com/deriv-app
Oct 11, 2022
df97783
Merge branch 'master' of github.com:iman-fs/deriv-app
Oct 11, 2022
f8e3530
Merge branch 'master' of github.com:binary-com/deriv-app
Oct 12, 2022
14356a8
Merge branch 'binary-com:master' into master
shayan-deriv Oct 18, 2022
e511559
Merge branch 'master' of github.com:binary-com/deriv-app
Oct 30, 2022
97f8b50
Merge branch 'master' of github.com:binary-com/deriv-app
Oct 31, 2022
0633de8
Merge branch 'master' of github.com:binary-com/deriv-app
Nov 2, 2022
bcfc8a7
Merge branch 'master' of github.com:binary-com/deriv-app
Nov 8, 2022
08bcc3a
Merge branch 'master' of github.com:binary-com/deriv-app into shayan/…
Nov 8, 2022
d33c89d
Merge branch 'binary-com:master' into shayan/80609/components-shared-…
shayan-deriv Nov 8, 2022
d9f64ee
Merge branch 'binary-com:master' into shayan/80609/components-shared-…
shayan-deriv Nov 10, 2022
b6d5d34
feat: :art: migrated component to tsx
likhith-deriv Nov 11, 2022
cf53459
feat: :art: fixed index
likhith-deriv Nov 11, 2022
4eaec35
feat: :art: incorporated single logic for props
likhith-deriv Nov 11, 2022
b8d666a
feat: :art: migrated component to tsx
likhith-deriv Nov 11, 2022
fe29322
feat: :recycle: incorporated review comments
likhith-deriv Nov 11, 2022
83bbd30
feat: :art: remoed comments
likhith-deriv Nov 11, 2022
0591b98
feat: migrated index file
likhith-deriv Nov 11, 2022
f98650c
feat: migrated index file
likhith-deriv Nov 11, 2022
85294ff
feat: :art: migrated comeponent to tsx
likhith-deriv Nov 11, 2022
7145ae1
feat: :art: incorporated type
likhith-deriv Nov 11, 2022
d95fe47
feat: :art: incorporated type
likhith-deriv Nov 11, 2022
bd8d4cd
feat: :recycle: incorporated review comments
likhith-deriv Nov 14, 2022
721e869
Merge branch 'master' of github.com:binary-com/deriv-app into shayan/…
Nov 14, 2022
2eb2601
yauheni/76888/icontradetypes ts migration
Nov 14, 2022
47b74d5
feat: :bug: resolved fialing testcase
likhith-deriv Nov 14, 2022
c2d1872
ts migration for idv expired
suisin-deriv Nov 14, 2022
4e2cd2d
feat: :art: migrated pageoverlay to tsx
likhith-deriv Nov 14, 2022
69ca340
feat: :bug: import statement fix
likhith-deriv Nov 14, 2022
7f2c942
feat: :art: migrated tooltip to tsx
likhith-deriv Nov 14, 2022
0acde06
Merge branch 'shayan/80609/components-shared-ts-migration-parent' of …
suisin-deriv Nov 15, 2022
781767b
remove .jsx from idv-epired index.js
suisin-deriv Nov 15, 2022
8bd9d04
feat: :recycle: incorporated review comments
likhith-deriv Nov 15, 2022
56c7ac7
feat: :recycle: incorporated review comments
likhith-deriv Nov 15, 2022
1195948
Merge pull request #12 from yauheni-kryzhyk-deriv/yauheni/76888/icont…
shayan-deriv Nov 15, 2022
2beef6e
ts migration for idv-rejected
suisin-deriv Nov 15, 2022
dfdd4a8
update any to unknown in globals.d.ts
suisin-deriv Nov 15, 2022
8a88a16
revert back to any to solve error
suisin-deriv Nov 15, 2022
1e295a8
Merge branch 'binary-com:master' into shayan/80609/components-shared-…
shayan-deriv Nov 15, 2022
c3d662e
refactor: formcancelbutton ts migration
Nov 15, 2022
80bc214
Merge branch 'binary-com:master' into shayan/80609/components-shared-…
shayan-deriv Nov 15, 2022
edb4049
trigger
Nov 15, 2022
f61b542
refactor: ts migration for idv-submit-complete
suisin-deriv Nov 16, 2022
1d3838d
refactor: ts migration for idv-verified
suisin-deriv Nov 16, 2022
af2ef8d
Merge branch 'shayan/80609/components-shared-ts-migration-parent' of …
suisin-deriv Nov 16, 2022
4cf9e85
refactor: ts migration for idv-verified.spec.tsx
suisin-deriv Nov 16, 2022
39ce7bf
feat: :art: migrated select-native to tsx
likhith-deriv Nov 16, 2022
704e0b1
feat: :recycle: incorporated review comments
likhith-deriv Nov 16, 2022
5cf00ce
feat: :art: Replaced Fragment tag
likhith-deriv Nov 16, 2022
f63bbc4
feat: :art: reduced typecasting
likhith-deriv Nov 16, 2022
4d51d65
Merge pull request #10 from likhith-deriv/likhith/76880/expansion-pan…
shayan-deriv Nov 16, 2022
ce04b18
refactor: ts migration for idv-limited.jsx
suisin-deriv Nov 16, 2022
be4a98f
fix: remove idv-limited.jsx from index.js
suisin-deriv Nov 16, 2022
e4a1869
Merge pull request #7 from likhith-deriv/likhith/76876/drawer-compone…
shayan-deriv Nov 16, 2022
d9d4a87
feat: :art: migrated component to tsx
likhith-deriv Nov 16, 2022
f48765b
Merge pull request #6 from likhith-deriv/likhith/76875/FileDropzon-ts…
shayan-deriv Nov 16, 2022
30c3239
Mobile Drawer migration
sanjam-deriv Nov 16, 2022
4b2b19d
Children Props change
sanjam-deriv Nov 16, 2022
ed7563f
feat: :recycle: incorporated review comments
likhith-deriv Nov 16, 2022
4e389db
feat: :recycle: incorporated review comments
likhith-deriv Nov 16, 2022
f8ff34b
Fix for drag drawer
sanjam-deriv Nov 16, 2022
cf075a9
Error fixes
sanjam-deriv Nov 16, 2022
5d09bba
feat: :art: migrated component to tsx
likhith-deriv Nov 16, 2022
59768c2
feat: :recycle: incorporated review comments
likhith-deriv Nov 16, 2022
1dcc0b0
feat: :art: migrate component to TSX
likhith-deriv Nov 16, 2022
2b1f5d7
Sanjam/76937/TS_Migration_TickPicker
sanjam-deriv Nov 16, 2022
b2a9244
refactor: prop fix
Nov 16, 2022
d45004e
Padstart fix
sanjam-deriv Nov 16, 2022
5dc48d0
Made chnages to make some properties optional
sanjam-deriv Nov 16, 2022
d3092d1
feat: :bug: fixed label type
likhith-deriv Nov 16, 2022
35f35a4
optional sub-header fix
sanjam-deriv Nov 16, 2022
81b7991
removed parseInt from the state
sanjam-deriv Nov 16, 2022
e81e12e
Merge pull request #20 from suisin-deriv/suisin/74140/ts_mirgration_i…
shayan-deriv Nov 17, 2022
5e5a946
Merge pull request #30 from suisin-deriv/suisin/74138/ts_migration_id…
shayan-deriv Nov 17, 2022
8a6aea9
Merge pull request #28 from suisin-deriv/suisi/74142/ts_migration_idv…
shayan-deriv Nov 17, 2022
b17473f
Merge pull request #27 from suisin-deriv/suisin/74141/ts_migration_id…
shayan-deriv Nov 17, 2022
4c04f0f
Merge branch 'binary-com:master' into shayan/80609/components-shared-…
shayan-deriv Nov 17, 2022
dae1d67
Merge pull request #25 from yauheni-kryzhyk-deriv/yauheni/76882/formc…
shayan-deriv Nov 17, 2022
f030989
Merge branch 'binary-com:master' into shayan/80609/components-shared-…
shayan-deriv Nov 20, 2022
8ccab44
Merge branch 'binary-com:master' into shayan/80609/components-shared-…
shayan-deriv Nov 20, 2022
70cb3c1
Merge pull request #13 from likhith-deriv/likhith/76897/mobiledialog-…
shayan-deriv Nov 20, 2022
b1abcc4
Merge pull request #15 from likhith-deriv/likhith/76941/migrate-toolt…
shayan-deriv Nov 20, 2022
602bc87
Merge branch 'binary-com:master' into shayan/80609/components-shared-…
shayan-deriv Nov 20, 2022
af8bc9d
Merge pull request #17 from suisin-deriv/suisin/74137/ts_migration_id…
shayan-deriv Nov 20, 2022
423b36d
feat: :bug: resolved import statements
likhith-deriv Nov 21, 2022
969e190
Merge branch 'binary-com:master' into shayan/80609/components-shared-…
shayan-deriv Nov 21, 2022
6021565
Merge pull request #36 from sanjam-deriv/sanjam/76937/TS_Migration_Ti…
shayan-deriv Nov 21, 2022
521a61e
Merge pull request #35 from likhith-deriv/likhith/74144/migrate-poi-b…
shayan-deriv Nov 21, 2022
11b9912
Merge pull request #31 from likhith-deriv/lkhith/76932/migrate-swipea…
shayan-deriv Nov 21, 2022
7bcaecd
Made the props change
sanjam-deriv Nov 22, 2022
52af15f
Merge branch 'binary-com:master' into shayan/80609/components-shared-…
shayan-deriv Nov 22, 2022
5c9c606
Merge pull request #34 from likhith-deriv/likhith/76914/migrate-popov…
shayan-deriv Nov 22, 2022
f6fe3f9
Pr fix
sanjam-deriv Nov 22, 2022
88284f7
Merge branch 'binary-com:master' into shayan/80609/components-shared-…
shayan-deriv Nov 22, 2022
393e814
refactor: ts migration for missing-personal-detals
suisin-deriv Nov 23, 2022
feb1361
Merge branch 'binary-com:master' into shayan/80609/components-shared-…
shayan-deriv Nov 23, 2022
2785b42
Merge pull request #32 from sanjam-deriv/sanjam/79898/TS_migration_Mo…
shayan-deriv Nov 23, 2022
677ae24
refactor: ts migration for missing-personal-details
suisin-deriv Nov 23, 2022
6768f6f
refactor: ts migration for missing-personal-details
suisin-deriv Nov 23, 2022
5abe1b8
Merge pull request #14 from likhith-deriv/likhith/76909/migrate-PageO…
shayan-deriv Nov 23, 2022
0b19a7d
Merge branch 'binary-com:master' into shayan/80609/components-shared-…
shayan-deriv Nov 23, 2022
977ae53
TS Migration Inline Icon with Tests
sanjam-deriv Nov 23, 2022
2b85d03
refactor: ts migration for poi/limited
suisin-deriv Nov 24, 2022
17fec09
Merge branch 'binary-com:master' into shayan/80609/components-shared-…
shayan-deriv Nov 24, 2022
af5dc50
Removed unused declarations
sanjam-deriv Nov 24, 2022
332395e
fix: resolved conflicts
suisin-deriv Nov 24, 2022
c0a769e
feat: :recycle: incorporated comments
likhith-deriv Nov 24, 2022
649b104
refactor: ts migration for poi/expired
suisin-deriv Nov 24, 2022
cdad86d
fix: conflicts
suisin-deriv Nov 24, 2022
2f97aba
fix: resolve cooonflicts
suisin-deriv Nov 24, 2022
f241f45
fix: resolve conflicts
suisin-deriv Nov 24, 2022
5e08711
fix: resolve conflicts
suisin-deriv Nov 24, 2022
b42977a
fix: resolve conflicts
suisin-deriv Nov 24, 2022
29fb824
feat: :art: migrated component
likhith-deriv Nov 24, 2022
575fa0f
Merge remote-tracking branch 'iman/shayan/80609/components-shared-ts-…
likhith-deriv Nov 24, 2022
1246d88
Merge pull request #29 from likhith-deriv/likhith/76929/select-native…
shayan-deriv Nov 24, 2022
ad7c803
Merge pull request #44 from likhith-deriv/likhith/76900/migrate-mobil…
shayan-deriv Nov 24, 2022
e2b9045
refactor: ts migration for card-with-arrow
suisin-deriv Nov 24, 2022
4c232ad
refactor: ts migration for card-with-arrow
suisin-deriv Nov 24, 2022
730c399
refactor: ts migration for constants.js
suisin-deriv Nov 24, 2022
4181f88
Passwordmeter
sanjam-deriv Nov 24, 2022
7a08922
Sanjam/ TS migration Password meter
sanjam-deriv Nov 24, 2022
4a31de0
Converted message ti react node
sanjam-deriv Nov 24, 2022
65e6892
Uneccessary child props
sanjam-deriv Nov 24, 2022
66dced4
Reverted spec changes
sanjam-deriv Nov 24, 2022
2aa87d3
fix: resolve conflicts
suisin-deriv Nov 25, 2022
10a8da2
refactor: apply changes on globals.d.ts
suisin-deriv Nov 25, 2022
cc4f5d6
fix: resolve conflicts
suisin-deriv Nov 25, 2022
ef5c154
Merge branch 'master' of github.com:binary-com/deriv-app into shayan/…
Nov 25, 2022
07c5eee
Merge branch 'shayan/80609/components-shared-ts-migration-parent' of …
Nov 25, 2022
f39343b
fix: resolve conflicts
suisin-deriv Nov 25, 2022
3952f20
refactor: changed open_chat_window to packages/core/globals.d.ts
suisin-deriv Nov 25, 2022
7fa136e
refactor: ts migration for documents
suisin-deriv Nov 25, 2022
2fbe78b
Merge branch 'shayan/80609/components-shared-ts-migration-parent' of …
suisin-deriv Nov 25, 2022
bc49990
fix: remove .jsx
suisin-deriv Nov 25, 2022
05b5f22
fix: resolve conflicts
suisin-deriv Nov 25, 2022
ab1a44f
Merge pull request #41 from suisin-deriv/suisin/74148/ts_migration_PO…
shayan-deriv Nov 25, 2022
db0c133
Export removed
sanjam-deriv Nov 25, 2022
aea5595
Merge branch 'binary-com:master' into shayan/80609/components-shared-…
shayan-deriv Nov 27, 2022
5494411
Merge branch 'shayan/80609/components-shared-ts-migration-parent' int…
shayan-deriv Nov 27, 2022
0743c01
Merge pull request #47 from suisin-deriv/suisin/74155/ts_migration_co…
shayan-deriv Nov 27, 2022
cc0f74e
Merge pull request #46 from suisin-deriv/suisin/74156/ts_migration_ca…
shayan-deriv Nov 27, 2022
e508384
Merge pull request #40 from sanjam-deriv/Sanjam-/-#74121/TS-migration…
shayan-deriv Nov 27, 2022
8f48934
MIgrated Password Meter component
sanjam-deriv Nov 28, 2022
a2d9af7
Fixes
sanjam-deriv Nov 28, 2022
0cbf5a9
Merge branch 'shayan/80609/components-shared-ts-migration-parent' int…
sanjam-deriv Nov 28, 2022
7ac59f0
fix: removed prop types
sanjam-deriv Nov 28, 2022
a7556e1
fix: empty
sanjam-deriv Nov 28, 2022
f0fd082
fix: build
sanjam-deriv Nov 28, 2022
94ee1ac
fix: build
sanjam-deriv Nov 28, 2022
e8f144c
fix: build
sanjam-deriv Nov 28, 2022
b971c6c
fix: extra file removed
sanjam-deriv Nov 28, 2022
e33551c
fix: update to latest PR
suisin-deriv Nov 29, 2022
7515954
fix: update to latest PR
suisin-deriv Nov 29, 2022
f34423b
fix: resolve conflicts
suisin-deriv Nov 29, 2022
b89ea51
fix: resolve conflicts
suisin-deriv Nov 29, 2022
efc0469
fix: make has_close_icon to be optional
suisin-deriv Nov 29, 2022
697ac83
fix: duplicated item
suisin-deriv Nov 29, 2022
537cca5
Merge branch 'binary-com:master' into shayan/80609/components-shared-…
shayan-deriv Nov 29, 2022
07e0ab9
fix: tests and buikd fix
sanjam-deriv Nov 29, 2022
5d99fad
refactor: change HTMLElement to ReactElement and remove propTypes
suisin-deriv Nov 29, 2022
91cbe14
fix: build fix
sanjam-deriv Nov 29, 2022
730b58c
Merge branch 'binary-com:master' into shayan/80609/components-shared-…
shayan-deriv Nov 29, 2022
e3e61f7
Merge pull request #39 from suisin-deriv/suisin/74143/ts_migration_of…
shayan-deriv Nov 29, 2022
099dabc
Merge pull request #42 from suisin-deriv/suisin/74147/ts_migration_po…
shayan-deriv Nov 29, 2022
8619dbf
Merge pull request #49 from suisin-deriv/suisin/74153/ts_migration_do…
shayan-deriv Nov 29, 2022
5aa1c23
Merge branch 'develop' of github.com:binary-com/deriv-app into shayan…
Nov 29, 2022
c27b53f
Merge branch 'binary-com:master' into shayan/80609/components-shared-…
shayan-deriv Nov 30, 2022
a12ae43
Merge branch 'develop' of github.com:binary-com/deriv-app into shayan…
Nov 30, 2022
c3ce527
Merge pull request #48 from sanjam-deriv/sanjam/76911/TS_Migration_Pa…
shayan-deriv Nov 30, 2022
b74d3d5
Merge branch 'develop' of github.com:binary-com/deriv-app into shayan…
Dec 1, 2022
61816dc
Merge branch 'binary-com:master' into shayan/80609/components-shared-…
shayan-deriv Dec 1, 2022
20af600
Merge branch 'develop' of github.com:binary-com/deriv-app into shayan…
Dec 5, 2022
d64a9a4
Merge branch 'develop' of github.com:binary-com/deriv-app into shayan…
Dec 5, 2022
b002f7d
fix: merged master into my branch and resolved conflicts
Dec 12, 2022
9b5e565
fix: fixing ts error[WIP]
Dec 14, 2022
01de52f
fix: merged master into my branch and resolved conflicts
Dec 19, 2022
e61b94d
Merge branch 'binary-com:master' into shayan/80609/components-shared-…
shayan-deriv Dec 26, 2022
b30337d
Merge branch 'master' of github.com:binary-com/deriv-app into shayan/…
Dec 28, 2022
a5f5458
Merge branch 'master' of github.com:binary-com/deriv-app into shayan/…
Dec 28, 2022
e219dd8
fix: fixed file-dropzone ts error
Dec 28, 2022
fc95285
fix: fixed ts errors
Dec 28, 2022
f250f46
fix: removed any
Dec 28, 2022
cd28757
Merge branch 'develop' of github.com:binary-com/deriv-app into shayan…
Jan 2, 2023
6a3b56a
fix: refactored useOnClickOutside hook to fix ts errors
Jan 3, 2023
34bc0f2
Merge branch 'develop' of github.com:binary-com/deriv-app into shayan…
Jan 4, 2023
eabd204
fix: fixed the codecov failing
Jan 4, 2023
510c441
Merge branch 'binary-com:master' into shayan/80609/components-shared-…
shayan-deriv Jan 8, 2023
f3b1eb5
Merge branch 'develop' of github.com:binary-com/deriv-app into shayan…
Jan 8, 2023
ff980b3
fix: resolve merge conflicts
Jan 30, 2023
49df494
Merge branch 'shayan/80609/components-shared-ts-migration-parent' of …
Jan 31, 2023
30e7581
fix: fixed ts errors
Jan 31, 2023
52e732f
Merge branch 'develop' of github.com:binary-com/deriv-app into shayan…
Feb 5, 2023
4fd453d
Merge branch 'develop' of github.com:binary-com/deriv-app into shayan…
Feb 6, 2023
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;
}
2 changes: 1 addition & 1 deletion packages/account/src/Components/article/article.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type TDescriptionsItem = {

export type TArticle = {
title: string;
descriptions: Array<TDescriptionsItem | React.ReactElement>;
descriptions: Array<TDescriptionsItem & React.ReactElement>;
onClickLearnMore?: () => void;
className?: string;
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import InlineNoteWithIcon from './inline-note-with-icon.jsx';
import InlineNoteWithIcon from './inline-note-with-icon';
import './inline-note-with-icon.scss';

export default InlineNoteWithIcon;
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Icon, Text } from '@deriv/components';

const InlineNoteWithIcon = ({ icon, message, title }) => {
type TInlineNoteWithIconExtend = {
icon: string;
message: React.ReactNode;
title: string;
};

const InlineNoteWithIcon = ({ icon, message, title }: TInlineNoteWithIconExtend) => {
return (
<div className='da-inline-note-with-icon'>
<div>
Expand All @@ -16,10 +21,4 @@ const InlineNoteWithIcon = ({ icon, message, title }) => {
);
};

InlineNoteWithIcon.propTypes = {
icon: PropTypes.string.isRequired,
message: PropTypes.string.isRequired,
title: PropTypes.string.isRequired,
};

export default InlineNoteWithIcon;
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Verified } from '../verified';
jest.mock('Components/poa/continue-trading-button/continue-trading-button', () => ({
ContinueTradingButton: jest.fn(() => <div>ContinueTradingButton</div>),
}));
jest.mock('Components/poi/poi-button/poi-button.jsx', () => ({
jest.mock('Components/poi/poi-button/poi-button', () => ({
PoiButton: jest.fn(() => <div>PoiButton</div>),
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Icon } from '@deriv/components';
import { PlatformContext } from '@deriv/shared';
import { localize } from '@deriv/translations';
import { TPlatformContext, TPoaStatusProps } from 'Types';
import { PoiButton } from 'Components/poi/poi-button/poi-button.jsx';
import { PoiButton } from 'Components/poi/poi-button/poi-button';
import IconMessageContent from 'Components/icon-message-content';
import { ContinueTradingButton } from 'Components/poa/continue-trading-button/continue-trading-button';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import { screen, render, fireEvent } from '@testing-library/react';
import { Icon } from '@deriv/components';
import { isDesktop, isMobile } from '@deriv/shared';
import IdvExpired from '../idv-expired';

Expand All @@ -19,8 +18,8 @@ jest.mock('@deriv/shared', () => ({
}));

beforeEach(() => {
isDesktop.mockReturnValue(true);
isMobile.mockReturnValue(false);
(isDesktop as jest.Mock).mockReturnValue(true);
(isMobile as jest.Mock).mockReturnValue(false);
jest.clearAllMocks();
});

Expand All @@ -41,8 +40,8 @@ describe('<IdvExpired/>', () => {
});

it('should render IdvExpired component on mobile', () => {
isDesktop.mockReturnValue(false);
isMobile.mockReturnValue(true);
(isDesktop as jest.Mock).mockReturnValue(false);
(isMobile as jest.Mock).mockReturnValue(true);
testComponentRender();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ import { Button, Icon, Text } from '@deriv/components';
import { isMobile } from '@deriv/shared';
import { localize } from '@deriv/translations';

const IdvExpired = ({ handleRequireSubmission }) => {
type TIdvExpired = {
handleRequireSubmission: () => void;
};

const IdvExpired = ({ handleRequireSubmission }: TIdvExpired) => {
return (
<div className='proof-of-identity__container' data-testid='idv_expired_container'>
<Icon icon='IcPoiFailed' className='icon' size={128} />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import IdvExpired from './idv-expired.jsx';
import IdvExpired from './idv-expired';

export default IdvExpired;
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;
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;
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ import { localize } from '@deriv/translations';
import PoaButton from 'Components/poa/poa-button';
import IdvDocumentPending from 'Assets/ic-idv-document-pending.svg';

const IdvSubmitComplete = ({ needs_poa, is_from_external }) => {
type TIdvSubmitComplete = {
needs_poa: boolean;
is_from_external: boolean;
};

const IdvSubmitComplete = ({ needs_poa, is_from_external }: TIdvSubmitComplete) => {
const poa_button = !is_from_external && <PoaButton custom_text={localize('Submit proof of address')} />;

return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import IdvSubmitComplete from './idv-submit-complete.jsx';
import IdvSubmitComplete from './idv-submit-complete';

export default IdvSubmitComplete;
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,12 @@ describe('<IdvVerified />', () => {
expect(screen.getByText(submit_text)).toBeInTheDocument();
expect(history.location.pathname).not.toBe('/account/proof-of-address');
fireEvent.click(screen.getByText(submit_text));
expect(screen.getByRole('link', { name: submit_text }).closest('a')).toHaveAttribute(
'href',
'/account/proof-of-address'
);
expect(screen.getByRole('link', { name: submit_text })).toHaveAttribute('href', '/account/proof-of-address');
expect(history.location.pathname).toBe('/account/proof-of-address');
});

it('should render the IdvVerified component when needs_poa is false and is_from_external is true in mobile', () => {
isMobile.mockReturnValue(true);
(isMobile as jest.Mock).mockReturnValue(true);
renderWithRouter(<IdvVerified is_from_external />);
expect(screen.getByTestId('poi_idv_verified_container')).toBeInTheDocument();
expect(screen.getByText(/mockedsvgicon/i)).toBeInTheDocument();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ import { localize } from '@deriv/translations';
import PoaButton from 'Components/poa/poa-button';
import IdvDocumentVerified from 'Assets/ic-idv-verified.svg';

const IdvVerified = ({ needs_poa, is_from_external }) => {
type TIdvVerified = {
needs_poa: boolean;
is_from_external: boolean;
};

const IdvVerified = ({ needs_poa, is_from_external }: Partial<TIdvVerified>) => {
const header_Text = needs_poa
? localize('Your ID is verified. You will also need to submit proof of your address.')
: localize('ID verification passed');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import IdvVerified from './idv-verified.jsx';
import IdvVerified from './idv-verified';

export default IdvVerified;
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ describe('<MissingPersonalDetails />', () => {
expect(screen.getByText(/your personal details are missing/i)).toBeInTheDocument();
const btn = screen.getByRole('link', { name: /go to personal details/i });
expect(btn).toBeInTheDocument();
expect(btn.closest('a')).toHaveAttribute('href', '/account/personal-details');
expect(btn.hasAttribute('href'));
expect(btn.hasAttribute('/account/personal-details'));
});

it('should show invalid msg and update link if has_invalid_postal_code is true', () => {
Expand All @@ -40,10 +41,8 @@ describe('<MissingPersonalDetails />', () => {

const btn = screen.getByRole('link', { name: /update postal code/i });
expect(btn).toBeInTheDocument();
expect(btn.closest('a')).toHaveAttribute(
'href',
'/account/personal-details?from=proof_of_identity#address_postcode'
);
expect(btn.hasAttribute('href'));
expect(btn.hasAttribute('/account/personal-details?from=proof_of_identity#address_postcode'));
});

it('should show missing msg with proper icon if has_invalid_postal_code is false and is_appstore is true', () => {
Expand All @@ -57,7 +56,8 @@ describe('<MissingPersonalDetails />', () => {

const btn = screen.getByRole('link', { name: /go to personal details/i });
expect(btn).toBeInTheDocument();
expect(btn.closest('a')).toHaveAttribute('href', '/account/personal-details?from=proof_of_identity');
expect(btn.hasAttribute('href'));
expect(btn.hasAttribute('/account/personal-details?from=proof_of_identity'));
});

it('should show missing msg with proper icon if has_invalid_postal_code is false and is_appstore is false', () => {
Expand All @@ -77,6 +77,7 @@ describe('<MissingPersonalDetails />', () => {

const btn = screen.getByRole('link', { name: /go to personal details/i });
expect(btn).toBeInTheDocument();
expect(btn.closest('a')).toHaveAttribute('href', '/account/personal-details');
expect(btn.hasAttribute('href'));
expect(btn.hasAttribute('/account/personal-details'));
});
});
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { MissingPersonalDetails } from './missing-personal-details.jsx';
import { MissingPersonalDetails } from './missing-personal-details';

export default MissingPersonalDetails;
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,22 @@ import { ButtonLink, Icon, Text } from '@deriv/components';
import { localize } from '@deriv/translations';
import IconMessageContent from 'Components/icon-message-content';

const GoToPersonalDetailsButton = ({ anchor, from, text }) => (
type TGoToPersonalDetailsButton = {
has_invalid_postal_code?: boolean;
anchor?: string;
from?: string;
text?: string;
};

const GoToPersonalDetailsButton = ({ anchor, from, text }: TGoToPersonalDetailsButton) => (
<ButtonLink to={`/account/personal-details${from ? `?from=${from}` : ''}${anchor ? `#${anchor}` : ''}`}>
<Text className='dc-btn__text' weight='bold' as='p'>
{text || localize('Go to personal details')}
</Text>
</ButtonLink>
);

export const MissingPersonalDetails = ({ has_invalid_postal_code, from }) => {
export const MissingPersonalDetails = ({ has_invalid_postal_code, from }: TGoToPersonalDetailsButton) => {
const { is_appstore } = React.useContext(PlatformContext);
if (has_invalid_postal_code)
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ describe('<PoiButton/>', () => {
it('should navigate to proof_of_identity page after clicking', () => {
renderWithRouter(<PoiButton />);
const poi_button = screen.getByText('Proof of identity');
expect(poi_button.closest('a')).toHaveAttribute('href', '/account/proof-of-identity');
const link = screen.getByRole('link', { current: false });
expect(link).toHaveAttribute('href', '/account/proof-of-identity');
fireEvent.click(poi_button);
expect(history.location.pathname).toBe('/account/proof-of-identity');
});
Expand Down
3 changes: 0 additions & 3 deletions packages/account/src/Components/poi/poi-button/index.js

This file was deleted.

3 changes: 3 additions & 0 deletions packages/account/src/Components/poi/poi-button/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { PoiButton } from './poi-button';

export default PoiButton;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { act, fireEvent, render, screen } from '@testing-library/react';
import { fireEvent, render, screen } from '@testing-library/react';
import Expired from '../expired';

describe('<Expired />', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Button, Icon } from '@deriv/components';
import { localize } from '@deriv/translations';
import IconMessageContent from 'Components/icon-message-content';

const Expired = ({ handleRequireSubmission, is_from_external, redirect_button }) => {
type TExpired = {
handleRequireSubmission: () => void;
is_from_external: boolean;
redirect_button: React.ReactElement;
};

const Expired = ({ handleRequireSubmission, is_from_external, redirect_button }: TExpired) => {
return (
<IconMessageContent
message={localize('New proof of identity document needed')}
Expand All @@ -23,10 +28,4 @@ const Expired = ({ handleRequireSubmission, is_from_external, redirect_button })
);
};

Expired.propTypes = {
handleRequireSubmission: PropTypes.func,
is_from_external: PropTypes.bool,
redirect_button: PropTypes.element,
};

export default Expired;
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import Expired from './expired.jsx';
import Expired from './expired';

export default Expired;
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { POILimited } from './limited.jsx';
import { POILimited } from './limited';

export default POILimited;
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ import React from 'react';
import { Icon, Text } from '@deriv/components';
import { isMobile } from '@deriv/shared';

const CardWithArrow = ({ onClick, title, description, icon }) => {
type TCardWithArrow = {
onClick: () => void;
title: string;
description: string;
icon: string;
};

const CardWithArrow = ({ onClick, title, description, icon }: TCardWithArrow) => {
return (
<div className='manual-poi__card' onClick={onClick}>
<Icon className='manual-poi__card-icon' icon={icon} size={64} />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { localize } from '@deriv/translations';
import { FormikValues } from 'formik';

export const ROOT_CLASS = 'manual-poi-details';

Expand Down Expand Up @@ -33,7 +34,7 @@ const date_field = {
required: true,
};

export const getDocumentIndex = ({ country_code }) => [
export const getDocumentIndex = ({ country_code }: FormikValues) => [
{
onfido_name: 'Passport',
card: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import React from 'react';
import { Card } from '@deriv/components';
import { CardWithArrow } from './card-with-arrow.jsx';
import { CardWithArrow } from './card-with-arrow';
import { FormikValues } from 'formik';

export const Documents = ({ toggleDetail, documents }) =>
documents.map((item, index) => (
type TDocument = {
toggleDetail: (index: number) => void;
documents: object[];
};

export const Documents = ({ toggleDetail, documents }: TDocument) =>
documents.map((item: FormikValues, index: number) => (
<Card
style={{
margin: '1.6rem 0',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Timeline } from '@deriv/components';
import { isMobile } from '@deriv/shared';
import { identity_status_codes } from 'Sections/Verification/ProofOfIdentity/proof-of-identity-utils.js';
import DetailComponent from './detail-component.jsx';
import { Documents } from './documents.jsx';
import { Documents } from './documents';
import { getDocumentIndex, DOCUMENT_TYPES } from './constants';
import UploadComplete from '../upload-complete';
import Verified from 'Components/poi/status/verified';
Expand Down
Loading