Skip to content

Commit e8da1ec

Browse files
committed
fix: add href to Image
1 parent 7f34bb6 commit e8da1ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/Image.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const Image: React.FC<ImageProps> = ({
1919
...otherProps
2020
} = boxProps;
2121

22+
// Override onClick if href provided.
2223
if (href !== undefined) {
2324
const navigate = useNavigate();
2425
onClick = () => navigate(href);

0 commit comments

Comments
 (0)