@ -3,7 +3,7 @@ import React, { useEffect, useState, useRef, useContext } from 'react'
import { ThemeContext , themes } from '../themeContext'
import { ThemeContext , themes } from '../themeContext'
import Carousel from 'react-multi-carousel'
import Carousel from 'react-multi-carousel'
import 'react-multi-carousel/lib/styles.css'
import 'react-multi-carousel/lib/styles.css'
import CustomNav Buttons from './customNav Buttons'
import CustomButtonGroupDot s from './customButtonGroupDot s'
const _paq = window . _paq = window . _paq || [ ] // eslint-disable-line
const _paq = window . _paq = window . _paq || [ ] // eslint-disable-line
function HomeTabFeatured() {
function HomeTabFeatured() {
@ -14,6 +14,16 @@ function HomeTabFeatured() {
}
}
} , [ ] )
} , [ ] )
const ButtonGroup = ( ) = > {
return (
< >
< button > One < / button >
< button > Two < / button >
< button > Three < / button >
< / >
) ;
} ;
return (
return (
< div className = "pt-3 pl-2" id = "hTFeaturedeSection" >
< div className = "pt-3 pl-2" id = "hTFeaturedeSection" >
< label style = { { fontSize : "1.2rem" } } > Featured < / label >
< label style = { { fontSize : "1.2rem" } } > Featured < / label >
@ -21,7 +31,7 @@ function HomeTabFeatured() {
< div className = "w-100 d-flex flex-column" style = { { height : "200px" } } >
< div className = "w-100 d-flex flex-column" style = { { height : "200px" } } >
< ThemeContext.Provider value = { themeFilter } >
< ThemeContext.Provider value = { themeFilter } >
< Carousel
< Carousel
customButtonGroup = { < CustomNav Buttons next = { undefined } previous = { undefined } goToSlide = { undefined } / > }
customButtonGroup = { < CustomButtonGroupDot s next = { undefined } previous = { undefined } goToSlide = { undefined } / > }
arrows = { false }
arrows = { false }
swipeable = { false }
swipeable = { false }
draggable = { true }
draggable = { true }
@ -31,6 +41,7 @@ function HomeTabFeatured() {
ssr = { true } // means to render carousel on server-side.
ssr = { true } // means to render carousel on server-side.
infinite = { true }
infinite = { true }
centerMode = { false }
centerMode = { false }
partialVisible = { false }
autoPlay = { true }
autoPlay = { true }
keyBoardControl = { true }
keyBoardControl = { true }
containerClass = "border carousel-container"
containerClass = "border carousel-container"