mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
use bg-image
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useKeenSlider } from 'keen-slider/react'
|
||||
import Image from 'next/image'
|
||||
import React, { Children, FC, isValidElement, useState } from 'react'
|
||||
import { HiChevronLeft, HiChevronRight } from 'react-icons/hi'
|
||||
import cn from 'classnames'
|
||||
|
||||
import s from './ProductSlider.module.css'
|
||||
@@ -20,12 +20,11 @@ const ProductSlider: FC = ({ children }) => {
|
||||
|
||||
return (
|
||||
<div className={s.root}>
|
||||
<button className={cn(s.leftControl, s.control)} onClick={slider?.prev}>
|
||||
<HiChevronLeft />
|
||||
</button>
|
||||
<button className={cn(s.rightControl, s.control)} onClick={slider?.next}>
|
||||
<HiChevronRight />
|
||||
</button>
|
||||
<button className={cn(s.leftControl, s.control)} onClick={slider?.prev} />
|
||||
<button
|
||||
className={cn(s.rightControl, s.control)}
|
||||
onClick={slider?.next}
|
||||
/>
|
||||
<div
|
||||
ref={ref}
|
||||
className="keen-slider h-full transition-opacity duration-150"
|
||||
|
Reference in New Issue
Block a user