|
|
|
@@ -1,24 +1,22 @@ |
|
|
|
import React from "react"; |
|
|
|
import React, { useEffect } from "react"; |
|
|
|
import PropTypes from "prop-types"; |
|
|
|
import { FilterFooterContainer } from "./FilterFooter.styled"; |
|
|
|
import selectedTheme from "../../../../themes"; |
|
|
|
import { PrimaryButton } from "../../../Buttons/PrimaryButton/PrimaryButton"; |
|
|
|
import { useTranslation } from "react-i18next"; |
|
|
|
import useSearch from "../../../../hooks/useOffers/useSearch"; |
|
|
|
import useIsMobile from "../../../../hooks/useIsMobile"; |
|
|
|
|
|
|
|
const FilterFooter = (props) => { |
|
|
|
const { t } = useTranslation(); |
|
|
|
console.log(useIsMobile); |
|
|
|
console.log(useSearch); |
|
|
|
console.log(useTranslation); |
|
|
|
const isMobile = useIsMobile; |
|
|
|
console.log(isMobile); |
|
|
|
const {isMobile }= useIsMobile(); |
|
|
|
const filters = props.filters; |
|
|
|
const handleFilters = () => { |
|
|
|
filters.apply(); |
|
|
|
props.toggleFilters(); |
|
|
|
}; |
|
|
|
useEffect(() => { |
|
|
|
console.log(isMobile); |
|
|
|
}, [isMobile]) |
|
|
|
return ( |
|
|
|
<FilterFooterContainer responsiveOpen={isMobile}> |
|
|
|
{isMobile && ( |