Skip to content

Commit d04d084

Browse files
committed
fix extraneous networkName prop
1 parent f6ac8db commit d04d084

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/gentle-lions-count.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-share": patch
3+
---
4+
5+
Fix warning of passing extraneous `networkName` for the share buttons.

src/ShareButton.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ export default function ShareButton<LinkOptions extends Record<string, unknown>>
115115
forwardedRef,
116116
htmlTitle,
117117
networkLink,
118-
// networkName, // TODO
118+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
119+
networkName, // deconstructed from ...rest to prevent passing it to the button element
119120
onClick,
120121
onShareWindowClose,
121122
openShareDialogOnClick = true,

0 commit comments

Comments
 (0)