File tree Expand file tree Collapse file tree 7 files changed +21
-49
lines changed Expand file tree Collapse file tree 7 files changed +21
-49
lines changed Original file line number Diff line number Diff line change 14
14
"@types/react-dom" : " ^16.9.7" ,
15
15
"react" : " ^16.13.1" ,
16
16
"react-dom" : " ^16.13.1" ,
17
+ "react-input-verification-code" : " ^0.4.1" ,
17
18
"react-scripts" : " ^3.4.1" ,
18
- "typescript" : " ^3.7.5" ,
19
- "react-input-verification-code" : " latest"
19
+ "typescript" : " ^3.7.5"
20
20
},
21
21
"devDependencies" : {
22
22
"@babel/plugin-syntax-object-rest-spread" : " ^7.8.3"
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import * as React from 'react';
2
2
import * as ReactDOM from 'react-dom' ;
3
3
import ReactInputVerificationCode from 'react-input-verification-code' ;
4
4
5
- import 'react-input-verification-code/dist/index.css' ;
6
5
import './index.css' ;
7
6
8
7
ReactDOM . render (
Original file line number Diff line number Diff line change @@ -8527,10 +8527,10 @@ react-error-overlay@^6.0.7:
8527
8527
resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.7.tgz#1dcfb459ab671d53f660a991513cb2f0a0553108"
8528
8528
integrity sha512-TAv1KJFh3RhqxNvhzxj6LeT5NWklP6rDr2a0jaTfsZ5wSZWHOGeqQyejUp3xxLfPt2UpyJEcVQB/zyPcmonNFA==
8529
8529
8530
- react-input-verification-code@latest :
8531
- version "0.3.0 "
8532
- resolved "https://registry.yarnpkg.com/react-input-verification-code/-/react-input-verification-code-0.3.0 .tgz#341e2467b850af196ffb07e3b031fa050b44155e "
8533
- integrity sha512-EivKrY4aJvFD+viWD1m4W23ziX0PP/kvqcAh4/dgJzol5UkdLS4lqeyExMAMja3651Ses7xp1b7mLwwVCdGlcQ ==
8530
+ react-input-verification-code@^0.4.1 :
8531
+ version "0.4.1 "
8532
+ resolved "https://registry.yarnpkg.com/react-input-verification-code/-/react-input-verification-code-0.4.1 .tgz#3a9fb70e305cb85722098e059ed0c3d95d4f9a53 "
8533
+ integrity sha512-rAtq67pZpqUJZlnkOQPnE4RsgCHJGOXVlvrOd8DzTOvZNH3gxUflCGgJ/Grd42AnLvLdcTFEKL+RbhbTAlnPQQ ==
8534
8534
8535
8535
react-is@^16.8.1, react-is@^16.8.4 :
8536
8536
version "16.13.1"
Original file line number Diff line number Diff line change 14
14
"@types/react-dom" : " ^16.9.7" ,
15
15
"react" : " ^16.13.1" ,
16
16
"react-dom" : " ^16.13.1" ,
17
+ "react-input-verification-code" : " ^0.4.1" ,
17
18
"react-scripts" : " ^3.4.1" ,
18
- "typescript" : " ^3.7.5" ,
19
- "react-input-verification-code" : " latest"
19
+ "typescript" : " ^3.7.5"
20
20
},
21
21
"devDependencies" : {
22
22
"@babel/plugin-syntax-object-rest-spread" : " ^7.8.3"
Original file line number Diff line number Diff line change 6
6
sans-serif;
7
7
-webkit-font-smoothing : antialiased;
8
8
-moz-osx-font-smoothing : grayscale;
9
-
10
- height : 100vh ;
11
- display : flex;
12
- justify-content : center;
13
- align-items : center;
14
- line-height : 1.5 ;
9
+ background-color : # 1d3557 ;
15
10
}
16
11
17
- main {
18
- width : 600px ;
19
- text-align : center;
12
+ .custom-styles {
13
+ --ReactInputVerificationCode-itemWidth : 2.5rem ;
14
+ --ReactInputVerificationCode-itemHeight : 3.5rem ;
15
+
16
+ height : 100vh ;
20
17
display : flex;
21
- flex-direction : column;
22
18
justify-content : center;
23
19
align-items : center;
24
- color : # 262626 ;
25
- }
26
-
27
- h1 {
28
- margin-bottom : 0 ;
29
- }
30
-
31
- p {
32
- padding : 0 3rem ;
33
- }
34
-
35
- .ReactInputVerificationCode__container {
36
- --itemWidth : 2.5rem !important ;
37
- --itemHeight : 3.5rem !important ;
38
20
}
39
21
40
22
.ReactInputVerificationCode__input ,
44
26
}
45
27
46
28
.ReactInputVerificationCode__item {
47
- position : relative;
48
- color : # 262626 ;
49
- font-weight : 500 ;
29
+ background-color : # f1faee ;
50
30
}
51
31
52
32
.ReactInputVerificationCode__item : after {
Original file line number Diff line number Diff line change @@ -2,18 +2,11 @@ import * as React from 'react';
2
2
import * as ReactDOM from 'react-dom' ;
3
3
import ReactInputVerificationCode from 'react-input-verification-code' ;
4
4
5
- import 'react-input-verification-code/dist/index.css' ;
6
5
import './index.css' ;
7
6
8
7
ReactDOM . render (
9
- < main >
10
- < h1 > Authenticate your account</ h1 >
11
- < p >
12
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque
13
- gravida ligula nulla, eu molestie dui vehicula non. Sed volutpat mollis
14
- sapien sit amet eleifend. Sed vitae molestie lectus
15
- </ p >
8
+ < div className = 'custom-styles' >
16
9
< ReactInputVerificationCode placeholder = '' onChange = { console . log } />
17
- </ main > ,
10
+ </ div > ,
18
11
document . getElementById ( 'root' )
19
12
) ;
Original file line number Diff line number Diff line change @@ -8527,10 +8527,10 @@ react-error-overlay@^6.0.7:
8527
8527
resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.7.tgz#1dcfb459ab671d53f660a991513cb2f0a0553108"
8528
8528
integrity sha512-TAv1KJFh3RhqxNvhzxj6LeT5NWklP6rDr2a0jaTfsZ5wSZWHOGeqQyejUp3xxLfPt2UpyJEcVQB/zyPcmonNFA==
8529
8529
8530
- react-input-verification-code@latest :
8531
- version "0.3.0 "
8532
- resolved "https://registry.yarnpkg.com/react-input-verification-code/-/react-input-verification-code-0.3.0 .tgz#341e2467b850af196ffb07e3b031fa050b44155e "
8533
- integrity sha512-EivKrY4aJvFD+viWD1m4W23ziX0PP/kvqcAh4/dgJzol5UkdLS4lqeyExMAMja3651Ses7xp1b7mLwwVCdGlcQ ==
8530
+ react-input-verification-code@^0.4.1 :
8531
+ version "0.4.1 "
8532
+ resolved "https://registry.yarnpkg.com/react-input-verification-code/-/react-input-verification-code-0.4.1 .tgz#3a9fb70e305cb85722098e059ed0c3d95d4f9a53 "
8533
+ integrity sha512-rAtq67pZpqUJZlnkOQPnE4RsgCHJGOXVlvrOd8DzTOvZNH3gxUflCGgJ/Grd42AnLvLdcTFEKL+RbhbTAlnPQQ ==
8534
8534
8535
8535
react-is@^16.8.1, react-is@^16.8.4 :
8536
8536
version "16.13.1"
You can’t perform that action at this time.
0 commit comments