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 1414 "@types/react-dom" : " ^16.9.7" ,
1515 "react" : " ^16.13.1" ,
1616 "react-dom" : " ^16.13.1" ,
17+ "react-input-verification-code" : " ^0.4.1" ,
1718 "react-scripts" : " ^3.4.1" ,
18- "typescript" : " ^3.7.5" ,
19- "react-input-verification-code" : " latest"
19+ "typescript" : " ^3.7.5"
2020 },
2121 "devDependencies" : {
2222 "@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';
22import * as ReactDOM from 'react-dom' ;
33import ReactInputVerificationCode from 'react-input-verification-code' ;
44
5- import 'react-input-verification-code/dist/index.css' ;
65import './index.css' ;
76
87ReactDOM . render (
Original file line number Diff line number Diff line change @@ -8527,10 +8527,10 @@ react-error-overlay@^6.0.7:
85278527 resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.7.tgz#1dcfb459ab671d53f660a991513cb2f0a0553108"
85288528 integrity sha512-TAv1KJFh3RhqxNvhzxj6LeT5NWklP6rDr2a0jaTfsZ5wSZWHOGeqQyejUp3xxLfPt2UpyJEcVQB/zyPcmonNFA==
85298529
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 ==
85348534
85358535react-is@^16.8.1, react-is@^16.8.4 :
85368536 version "16.13.1"
Original file line number Diff line number Diff line change 1414 "@types/react-dom" : " ^16.9.7" ,
1515 "react" : " ^16.13.1" ,
1616 "react-dom" : " ^16.13.1" ,
17+ "react-input-verification-code" : " ^0.4.1" ,
1718 "react-scripts" : " ^3.4.1" ,
18- "typescript" : " ^3.7.5" ,
19- "react-input-verification-code" : " latest"
19+ "typescript" : " ^3.7.5"
2020 },
2121 "devDependencies" : {
2222 "@babel/plugin-syntax-object-rest-spread" : " ^7.8.3"
Original file line number Diff line number Diff line change 66 sans-serif;
77 -webkit-font-smoothing : antialiased;
88 -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 ;
1510}
1611
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 ;
2017 display : flex;
21- flex-direction : column;
2218 justify-content : center;
2319 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 ;
3820}
3921
4022.ReactInputVerificationCode__input ,
4426}
4527
4628.ReactInputVerificationCode__item {
47- position : relative;
48- color : # 262626 ;
49- font-weight : 500 ;
29+ background-color : # f1faee ;
5030}
5131
5232.ReactInputVerificationCode__item : after {
Original file line number Diff line number Diff line change @@ -2,18 +2,11 @@ import * as React from 'react';
22import * as ReactDOM from 'react-dom' ;
33import ReactInputVerificationCode from 'react-input-verification-code' ;
44
5- import 'react-input-verification-code/dist/index.css' ;
65import './index.css' ;
76
87ReactDOM . 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' >
169 < ReactInputVerificationCode placeholder = '' onChange = { console . log } />
17- </ main > ,
10+ </ div > ,
1811 document . getElementById ( 'root' )
1912) ;
Original file line number Diff line number Diff line change @@ -8527,10 +8527,10 @@ react-error-overlay@^6.0.7:
85278527 resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.7.tgz#1dcfb459ab671d53f660a991513cb2f0a0553108"
85288528 integrity sha512-TAv1KJFh3RhqxNvhzxj6LeT5NWklP6rDr2a0jaTfsZ5wSZWHOGeqQyejUp3xxLfPt2UpyJEcVQB/zyPcmonNFA==
85298529
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 ==
85348534
85358535react-is@^16.8.1, react-is@^16.8.4 :
85368536 version "16.13.1"
You can’t perform that action at this time.
0 commit comments