From 81aaf6473866aeb13f7084f951b719f2bb3614e6 Mon Sep 17 00:00:00 2001 From: CPunisher <1343316114@qq.com> Date: Wed, 1 Jul 2020 23:28:09 +0800 Subject: [PATCH] GA for zoom --- src/components/app/PartMore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => (