|
@@ -8,7 +8,7 @@ import Slider from 'react-slick'
|
|
import FlipPic from './components/flipPic'
|
|
import FlipPic from './components/flipPic'
|
|
import isMobile from '@/utils/isMobile'
|
|
import isMobile from '@/utils/isMobile'
|
|
|
|
|
|
-function A1home({ show, setShow }: { show: boolean; setShow: (show: boolean) => void }) {
|
|
|
|
|
|
+function A1home() {
|
|
const history = useHistory()
|
|
const history = useHistory()
|
|
const sliderRef = useRef<Slider>(null)
|
|
const sliderRef = useRef<Slider>(null)
|
|
const [activeIndex, setActiveIndex] = useState<number>(0)
|
|
const [activeIndex, setActiveIndex] = useState<number>(0)
|
|
@@ -83,7 +83,7 @@ function A1home({ show, setShow }: { show: boolean; setShow: (show: boolean) =>
|
|
}
|
|
}
|
|
]
|
|
]
|
|
return (
|
|
return (
|
|
- <div className={styles.A1home} style={{ display: show ? 'flex' : 'none' }}>
|
|
|
|
|
|
+ <div className={styles.A1home}>
|
|
<Background activeIndex={activeIndex} />
|
|
<Background activeIndex={activeIndex} />
|
|
<VerticalBanner
|
|
<VerticalBanner
|
|
ref={sliderRef}
|
|
ref={sliderRef}
|