Skip to content

Commit

Permalink
fix(Next > Album): Pass id so URL anchor from all to album
Browse files Browse the repository at this point in the history
  • Loading branch information
danactive committed Dec 25, 2021
1 parent 5a03794 commit e4f294c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/components/ThumbImg/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const ThumbImg = ({
caption,
href,
src,
id,
}) => {
const [viewed, setViewed] = useState(false)
const handleClick = (event) => {
Expand All @@ -47,7 +48,7 @@ const ThumbImg = ({

return (
<Bullet>
<ImgButton viewed={viewed} href={href} onClick={handleClick}>
<ImgButton viewed={viewed} href={href} onClick={handleClick} id={id}>
<Img src={src} alt="Preview thumbnail (scaled down dimensions)" />
</ImgButton>
<Caption>{caption}</Caption>
Expand Down

0 comments on commit e4f294c

Please sign in to comment.