Skip to content

Commit 7ec080f

Browse files
committed
Fix typo in Link's props destructive assignment.
1 parent 009891c commit 7ec080f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export const Link = props => {
106106
const [, navigate] = useLocation();
107107

108108
const href = props.href || props.to;
109-
const { children, onClick } = props.children;
109+
const { children, onClick } = props;
110110

111111
const handleClick = useCallback(
112112
event => {

0 commit comments

Comments
 (0)