| @@ -21,12 +21,14 @@ import { selectHeaderString } from "../../../../store/selectors/filtersSelectors | |||
| import useIsMobile from "../../../../hooks/useIsMobile"; | |||
| import { ArrowButton } from "../../../Buttons/ArrowButton/ArrowButton"; | |||
| import { useTranslation } from "react-i18next"; | |||
| import history from "../../../../store/utils/history"; | |||
| import { useHistory } from "react-router-dom"; | |||
| const TooltipHeader = (props) => { | |||
| const headerString = useSelector(selectHeaderString); | |||
| const { isMobile } = useIsMobile(); | |||
| const { t } = useTranslation(); | |||
| const history = useHistory(); | |||
| console.log(history); | |||
| const handleClickCategory = () => { | |||
| props?.offers?.filters?.locations.clear(); | |||
| @@ -42,9 +44,16 @@ const TooltipHeader = (props) => { | |||
| const goBack = () => { | |||
| history.goBack(); | |||
| }; | |||
| console.log(props) | |||
| console.log(props); | |||
| return ( | |||
| <Tooltip title={headerString.text}> | |||
| <Tooltip | |||
| title={ | |||
| history.location.pathname.includes("admin") || | |||
| history.location.pathname.includes("myoffers") | |||
| ? "" | |||
| : headerString.text | |||
| } | |||
| > | |||
| <TooltipInnerContainer> | |||
| {!props?.myOffers ? ( | |||
| <> | |||