/* eslint-disable react/jsx-no-bind */ import PropTypes from 'prop-types'; import React, { Fragment } from 'react'; import { Slider } from 'react-burgers'; import cx from 'classnames'; import { faEllipsisV } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { Button } from 'reactstrap'; import reduxConnect from '../../../redux/utils/connect'; import translate from 'react-i18next/dist/commonjs/translate'; import { compose } from 'redux'; class AppMobileMenu extends React.Component { constructor(props) { super(props); this.state = { active: false, mobile: false, activeSecondaryMenuMobile: false }; } toggleMobileSidebar = () => { const { setEnableMobileMenu } = this.props.actions; const { enableMobileMenu } = this.props.appState.themeOptions; setEnableMobileMenu(!enableMobileMenu); }; toggleMobileSmall = () => { const { setEnableMobileMenuSmall } = this.props.actions; const { enableMobileMenuSmall } = this.props.appState.themeOptions; setEnableMobileMenuSmall(!enableMobileMenuSmall); }; state = { openLeft: false, openRight: false, relativeWidth: false, width: 280, noTouchOpen: false, noTouchClose: false }; changeActive = () => { this.setState({ active: !this.state.active }); }; render() { return (
); } } AppMobileMenu.propTypes = { actions: PropTypes.object, appState: PropTypes.object }; const applyDecorators = compose( reduxConnect('appState', ['appState']), translate(['tabsContent'], { wait: true }) ); export default applyDecorators(AppMobileMenu);