Skip to content

Commit 7f17119

Browse files
committed
Fix variable types
1 parent e8452aa commit 7f17119

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "next-share",
3-
"version": "0.18.1",
3+
"version": "0.18.2",
44
"description": "Social media share buttons for your next React apps.",
55
"author": "Bunlong <[email protected]>",
66
"license": "MIT",
@@ -63,7 +63,7 @@
6363
"prettier": "^2.3.2",
6464
"react": "^17.0.2",
6565
"react-dom": "^17.0.2",
66-
"react-scripts": "^4.0.3",
66+
"react-scripts": "^5.0.1",
6767
"react-test-renderer": "^17.0.2",
6868
"rollup": "^2.56.3",
6969
"rollup-plugin-terser": "^7.0.2",
@@ -94,9 +94,7 @@
9494
}
9595
],
9696
"peerDependencies": {
97-
"react": ">=17.0.0",
98-
"react-dom": ">=17.0.0",
99-
"react-scripts": ">=4.0.0"
97+
"react": ">=17.0.2"
10098
},
10199
"dependencies": {
102100
"jsonp": "^0.2.1"

src/hocs/createShareButton.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ function createShareButton<
2020
OptionProps;
2121

2222
function CreatedButton(props: Props, ref: Ref<HTMLButtonElement>) {
23-
const opts = optsMap(props);
24-
const passedProps = { ...props };
23+
const opts: any = optsMap(props);
24+
const passedProps: any = { ...props };
2525

2626
const optsKeys = Object.keys(opts);
2727
optsKeys.forEach((key) => {
28-
delete (passedProps as any)[key];
28+
delete passedProps[key];
2929
});
3030

3131
return (

src/hocs/createShareCount.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class SocialMediaShareCount extends Component<
7171

7272
const {
7373
children = defaultChildren,
74+
// eslint-disable-next-line react/prop-types
7475
className,
7576
// eslint-disable-next-line @typescript-eslint/no-unused-vars
7677
getCount: _,

supports/create-react-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"@testing-library/jest-dom": "^5.16.4",
77
"@testing-library/react": "^13.3.0",
88
"@testing-library/user-event": "^13.5.0",
9-
"next-share": "^0.16.0",
9+
"next-share": "^0.18.1",
1010
"react": "^18.1.0",
1111
"react-dom": "^18.1.0",
1212
"react-scripts": "5.0.1",

0 commit comments

Comments
 (0)