diff --git a/pairent_frontend_react/src/pages/IndexPage/index.jsx b/pairent_frontend_react/src/pages/IndexPage/index.jsx index 422118e..721f83d 100644 --- a/pairent_frontend_react/src/pages/IndexPage/index.jsx +++ b/pairent_frontend_react/src/pages/IndexPage/index.jsx @@ -2,7 +2,6 @@ import React, { useState } from "react"; import { Swiper, SwiperSlide } from 'swiper/react'; import { Scrollbar, Navigation } from 'swiper/core'; import ISVGIcon from '../../components/UI/Icon/SVGIcon'; -import { Formik, Field, Form } from 'formik'; import styled from 'styled-components'; import 'swiper/css'; @@ -113,47 +112,44 @@ const FiltersForm = () => { per_month: false }; + const [ state, setState ] = useState(def_form); + const submitted = (a) => { console.log(a); } return ( - { - console.log(values); - }} - > -
- - Фильтры - - - - - Посуточно - - - - Ежемесячно - - - - Сбросить - - + + Фильтры + + + setState({per_day: !state.per_day})}> + + Посуточно + + setState({per_month: !state.per_month})}> + + Ежемесячно + + + + Сбросить + + - - asbvccxcz - + + asbvccxcz + - - - Показать варианты - - - -
+ + + Показать варианты + + ); }