From 11b0e1fce936857a7dbd3faaff60d45c3434329f Mon Sep 17 00:00:00 2001 From: b1ek Date: Wed, 17 May 2023 04:47:03 +1000 Subject: [PATCH] add slider autoplay --- pairent_frontend_react/src/pages/IndexPage/index.jsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pairent_frontend_react/src/pages/IndexPage/index.jsx b/pairent_frontend_react/src/pages/IndexPage/index.jsx index 2d97f36..1e03160 100644 --- a/pairent_frontend_react/src/pages/IndexPage/index.jsx +++ b/pairent_frontend_react/src/pages/IndexPage/index.jsx @@ -5,13 +5,15 @@ import { Filters } from "../../API/Filters"; import styled from 'styled-components'; -// ras customization -import './ras.css'; import ApartamentService from "../../API/ApartamentService"; import { HashLoader } from 'react-spinners'; import AwesomeSlider from 'react-awesome-slider'; +import withAutoplay from 'react-awesome-slider/dist/autoplay'; import 'react-awesome-slider/dist/styles.css'; +// ras customization +import './ras.css'; +const AutoplaySlider = withAutoplay(AwesomeSlider); import constants from "../../constants"; @@ -376,10 +378,10 @@ export default class IndexPage extends React.Component { return ( - +
- +