GA for zoom
This commit is contained in:
parent
622712cb4a
commit
81aaf64738
|
@ -104,9 +104,9 @@ const PartMore = () => {
|
||||||
|
|
||||||
const Gallery = ({ contents }) => {
|
const Gallery = ({ contents }) => {
|
||||||
const zoom = mediumZoom();
|
const zoom = mediumZoom();
|
||||||
const zoomRef = React.useRef(zoom);
|
|
||||||
zoom.on('open', event => {handleZoom(event.target.src)})
|
zoom.on('open', event => {handleZoom(event.target.src)})
|
||||||
|
|
||||||
|
const zoomRef = React.useRef(zoom);
|
||||||
return (
|
return (
|
||||||
contents.map((url, index) => (
|
contents.map((url, index) => (
|
||||||
<LazyLoad key={'lazy_gallery_' + index} offsetVertical={200}>
|
<LazyLoad key={'lazy_gallery_' + index} offsetVertical={200}>
|
||||||
|
|
Loading…
Reference in New Issue