diff --git a/src/components/app/PartMore.js b/src/components/app/PartMore.js index d0cd722..7d3b995 100644 --- a/src/components/app/PartMore.js +++ b/src/components/app/PartMore.js @@ -104,9 +104,9 @@ const PartMore = () => { const Gallery = ({ contents }) => { const zoom = mediumZoom(); - const zoomRef = React.useRef(zoom); zoom.on('open', event => {handleZoom(event.target.src)}) + const zoomRef = React.useRef(zoom); return ( contents.map((url, index) => (