We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f34bb6 commit e8da1ecCopy full SHA for e8da1ec
src/components/Image.tsx
@@ -19,6 +19,7 @@ const Image: React.FC<ImageProps> = ({
19
...otherProps
20
} = boxProps;
21
22
+ // Override onClick if href provided.
23
if (href !== undefined) {
24
const navigate = useNavigate();
25
onClick = () => navigate(href);
0 commit comments