Seems like this is not needed

Fix See Post button not opening the post
This commit is contained in:
Lim Chee Aun 2023-06-13 15:32:10 +08:00
parent b5250f03c1
commit f6ef727cae

View file

@ -219,14 +219,14 @@ function MediaModal({
: '' : ''
}`} }`}
class="button carousel-button media-post-link plain3" class="button carousel-button media-post-link plain3"
onClick={() => { // onClick={() => {
// if small screen (not media query min-width 40em + 350px), run onClose // // if small screen (not media query min-width 40em + 350px), run onClose
if ( // if (
!window.matchMedia('(min-width: calc(40em + 350px))').matches // !window.matchMedia('(min-width: calc(40em + 350px))').matches
) { // ) {
onClose(); // onClose();
} // }
}} // }}
> >
<span class="button-label">See post </span>&raquo; <span class="button-label">See post </span>&raquo;
</Link> </Link>