Skip to content

Commit 2737532

Browse files
committed
minor readability improvement: rename e to event
1 parent 1f2274f commit 2737532

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/ShareButton.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export default class ShareButton<LinkOptions> extends Component<Props<LinkOption
132132
windowOpen(link, windowConfig, onShareWindowClose);
133133
};
134134

135-
handleClick = async (e: React.MouseEvent<HTMLButtonElement>) => {
135+
handleClick = async (event: React.MouseEvent<HTMLButtonElement>) => {
136136
const {
137137
beforeOnClick,
138138
disabled,
@@ -149,7 +149,7 @@ export default class ShareButton<LinkOptions> extends Component<Props<LinkOption
149149
return;
150150
}
151151

152-
e.preventDefault();
152+
event.preventDefault();
153153

154154
if (beforeOnClick) {
155155
const returnVal = beforeOnClick();
@@ -164,7 +164,7 @@ export default class ShareButton<LinkOptions> extends Component<Props<LinkOption
164164
}
165165

166166
if (onClick) {
167-
onClick(e, link);
167+
onClick(event, link);
168168
}
169169
};
170170

0 commit comments

Comments
 (0)