Skip to content

Commit 36615b0

Browse files
author
ugogo
committed
update examples
1 parent aa5ed4a commit 36615b0

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

examples/basic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"react-dom": "^16.13.1",
1717
"react-scripts": "^3.4.1",
1818
"typescript": "^3.7.5",
19-
"react-input-verification-code": "0.1.4"
19+
"react-input-verification-code": "latest"
2020
},
2121
"devDependencies": {
2222
"@babel/plugin-syntax-object-rest-spread": "^7.8.3"

examples/basic/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ import 'react-input-verification-code/dist/index.css';
66
import './index.css';
77

88
ReactDOM.render(
9-
<ReactInputVerificationCode />,
9+
<ReactInputVerificationCode onChange={console.log} />,
1010
document.getElementById('root')
1111
);

examples/basic/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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@0.1.4:
8531-
version "0.1.4"
8532-
resolved "https://registry.yarnpkg.com/react-input-verification-code/-/react-input-verification-code-0.1.4.tgz#cb07f01cc2b66088d4fdbdb15d664dc54aac2de7"
8533-
integrity sha512-qh2Va6qs3fthjlXsEa8NYSTB0skI8u7st1g+wn0AGCFYhRpvAC1pixWzKwuEO7lh8ZfZRHQWAJjGtCZ8uoHqjg==
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==
85348534

85358535
react-is@^16.8.1, react-is@^16.8.4:
85368536
version "16.13.1"

examples/custom-styles/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"react-dom": "^16.13.1",
1717
"react-scripts": "^3.4.1",
1818
"typescript": "^3.7.5",
19-
"react-input-verification-code": "0.1.4"
19+
"react-input-verification-code": "latest"
2020
},
2121
"devDependencies": {
2222
"@babel/plugin-syntax-object-rest-spread": "^7.8.3"

examples/custom-styles/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ReactDOM.render(
1313
gravida ligula nulla, eu molestie dui vehicula non. Sed volutpat mollis
1414
sapien sit amet eleifend. Sed vitae molestie lectus
1515
</p>
16-
<ReactInputVerificationCode placeholder='' />
16+
<ReactInputVerificationCode placeholder='' onChange={console.log} />
1717
</main>,
1818
document.getElementById('root')
1919
);

examples/custom-styles/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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@0.1.4:
8531-
version "0.1.4"
8532-
resolved "https://registry.yarnpkg.com/react-input-verification-code/-/react-input-verification-code-0.1.4.tgz#cb07f01cc2b66088d4fdbdb15d664dc54aac2de7"
8533-
integrity sha512-qh2Va6qs3fthjlXsEa8NYSTB0skI8u7st1g+wn0AGCFYhRpvAC1pixWzKwuEO7lh8ZfZRHQWAJjGtCZ8uoHqjg==
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==
85348534

85358535
react-is@^16.8.1, react-is@^16.8.4:
85368536
version "16.13.1"

0 commit comments

Comments
 (0)