oddsgate-ds 1.0.93 → 1.0.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -4,8 +4,8 @@ import Button from '@/components/atoms/Button/Button.component'
|
|
|
4
4
|
import { ISlider } from './Slider.interface'
|
|
5
5
|
import Icon from '@/components/atoms/Icon/Icon.component'
|
|
6
6
|
import { StyledSlider } from './Slider.theme'
|
|
7
|
+
import isTouchDevice from '@/helpers/isTouchDevice'
|
|
7
8
|
import { useBlazeSlider } from './Slider.utils'
|
|
8
|
-
import useMediaMatch from '@/helpers/useMediaMatch'
|
|
9
9
|
|
|
10
10
|
const Slider = ({
|
|
11
11
|
arrows,
|
|
@@ -28,7 +28,7 @@ const Slider = ({
|
|
|
28
28
|
let elRef: any = null
|
|
29
29
|
let sliderRef: any = null
|
|
30
30
|
|
|
31
|
-
const isMobile =
|
|
31
|
+
const isMobile = isTouchDevice();
|
|
32
32
|
|
|
33
33
|
const setConfig = () => {
|
|
34
34
|
if (sliderRef?.current) sliderRef.current.destroy()
|