import React from 'react'; import Modal from 'react-modal'; import Icon from '/imports/ui/components/icon/component'; import Button from '/imports/ui/components/button/component'; import BaseMenu from '../base/component'; import ReactDOM from 'react-dom'; import FontControl from '/imports/api/FontControl'; import styles from '../styles.scss'; import { handleGetFontSizeName } from '/imports/api/FontControl'; import { handleIncreaseFontSize } from '/imports/api/FontControl'; import { handleDecreaseFontSize } from '/imports/api/FontControl'; export default class ApplicationMenu extends BaseMenu { constructor(props) { super(props); } componentWillMount () { if ( localStorage.bbbSavedFontSize ) { this.setState({currentFontSize: localStorage.bbbSavedFontSize}); }else if ( localStorage.bbbFontSize ){ this.setState({currentFontSize: localStorage.bbbFontSize}); }else{ this.setState({currentFontSize: 3}); }; } getContent() { const size = (localStorage.bbbFontSize) ? localStorage.bbbFontSize : 3; return (

Font size

{handleGetFontSizeName.call(this)}

); } };