cover full screen and center

This commit is contained in:
Julián Benegas
2020-10-22 20:08:47 -03:00
parent 44199be2e7
commit e59b59ef8d
5 changed files with 12 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
import { ArrowLeft } from '@components/icon'
import { useKeenSlider } from 'keen-slider/react'
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'
@@ -17,10 +17,10 @@ const ProductSlider: FC = ({ children }) => {
return (
<div className={s.root}>
<button className={cn(s.leftControl, s.control)} onClick={slider?.prev}>
<ArrowLeft />
<HiChevronLeft />
</button>
<button className={cn(s.rightControl, s.control)} onClick={slider?.next}>
<ArrowLeft />
<HiChevronRight />
</button>
<div ref={ref} className="keen-slider h-full">
{Children.map(children, (child) => {