import React, { Component } from 'react' import './SpecificationsFilterComponent.css' import FilterAltIcon from '@mui/icons-material/FilterAlt'; import Tippy from '@tippyjs/react'; import Popover from '@mui/material/Popover'; import Typography from '@mui/material/Typography'; import Button from '@mui/material/Button'; import FilterSelectComponent from './FilterSelectComponent'; import ArrowDropDownIcon from '@mui/icons-material/ArrowDropDown'; import PickSpecificationComponent from '../PickSpecificationComponent/PickSpecificationComponent'; import axios from 'axios'; import UserContext from '../../context/UserContext'; export class SpecificationsFilterComponent extends Component { constructor(props) { super(props) this.state = { anchorEl: null, openModal: false, } } handleClick = (event) => { this.setState({ anchorEl: event.currentTarget }) }; handleClose = () => { this.setState({ anchorEl: null }) }; handleModalClose = () =>{ this.setState({ openModal: false }) } handleModalOpen = () =>{ this.setState({ openModal: true }) } render() { const open = Boolean(this.state.anchorEl); const id = open ? 'specifications-popover' : undefined; return (

Спецификации

Филтер за спецификации

{ !localStorage.getItem('pickedSpecifications') || localStorage.getItem('pickedSpecifications').includes("РАМ меморија") ? : <> } { !localStorage.getItem('pickedSpecifications') || localStorage.getItem('pickedSpecifications').includes("РОМ меморија") ? : <> } { !localStorage.getItem('pickedSpecifications') || localStorage.getItem('pickedSpecifications').includes("Предна камера") ? : <> } { !localStorage.getItem('pickedSpecifications') || localStorage.getItem('pickedSpecifications').includes("Задна камера") ? : <> } { !localStorage.getItem('pickedSpecifications') || localStorage.getItem('pickedSpecifications').includes("Чипсет") ? : <> } { !localStorage.getItem('pickedSpecifications') || localStorage.getItem('pickedSpecifications').includes("Процесор") ? : <> } { !localStorage.getItem('pickedSpecifications') || localStorage.getItem('pickedSpecifications').includes("Оперативен систем") ? : <> } { !localStorage.getItem('pickedSpecifications') || localStorage.getItem('pickedSpecifications').includes("Боја") ? : <> } { !localStorage.getItem('pickedSpecifications') || localStorage.getItem('pickedSpecifications').includes("Батерија") ? : <> }
{ this.context.userId != '' && }
) } } SpecificationsFilterComponent.contextType = UserContext export default SpecificationsFilterComponent