added close button to phtoswipe

This commit is contained in:
Abhinav-grd 2021-01-19 10:00:52 +05:30
parent 65a4489cf8
commit cfe10d99af

View file

@ -133,6 +133,10 @@ class PhotoSwipe extends React.Component {
<div className="pswp__top-bar"> <div className="pswp__top-bar">
<div className="pswp__counter" /> <div className="pswp__counter" />
<button
className="pswp__button pswp__button--close"
title="Share"
/>
<button <button
className="pswp__button pswp__button--share" className="pswp__button pswp__button--share"
title="Share" title="Share"
@ -142,7 +146,7 @@ class PhotoSwipe extends React.Component {
title="Toggle fullscreen" title="Toggle fullscreen"
/> />
<button className="pswp__button pswp__button--zoom" title="Zoom in/out" /> <button className="pswp__button pswp__button--zoom" title="Zoom in/out" />
<FavButton className="pswp__button" isClick={this.state.isClick} onClick={() => { this.setState({ isClick: !this.state.isClick }); addToFavorites(this.photoSwipe.currItem) }} /> <FavButton isClick={this.state.isClick} onClick={() => { this.setState({ isClick: !this.state.isClick }); addToFavorites(this.photoSwipe.currItem) }} />
<div className="pswp__preloader"> <div className="pswp__preloader">
<div className="pswp__preloader__icn"> <div className="pswp__preloader__icn">
<div className="pswp__preloader__cut"> <div className="pswp__preloader__cut">