Last active
October 30, 2019 07:47
-
-
Save newdecline/e942b4f30ee422fac617b5479732aaa2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (process.browser && window.innerWidth >= 1366) { | |
_slidesToShow = 3; | |
} else if (process.browser && window.innerWidth >= 1024) { | |
_slidesToShow = 2; | |
} else if (process.browser && window.innerWidth >= 320) { | |
_slidesToShow = 1; | |
} | |
events.length !== 0 && <div | |
className={events.length <= _slidesToShow | |
? 'events__slider no-controls' | |
: 'events__slider'} | |
> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment