import React from 'react'; import { PropTypes } from 'prop-types'; import { Helmet } from 'react-helmet'; import brand from 'ba-api/brand'; import LiveHelp from '@material-ui/icons/LiveHelp'; import { isWidthUp } from '@material-ui/core/withWidth'; import { withStyles } from '@material-ui/core/styles'; import { Typography, withWidth, Grid } from '@material-ui/core'; import styles from './helpSupport-jss'; import Qna from './Qna'; import ContactForm from './ContactForm'; class Settings extends React.Component { showResult(values) { setTimeout(() => { this.setState({ valueForm: values }); window.alert(`You submitted:\n\n${this.state.valueForm}`); }, 500); // simulate server latency } render() { const title = brand.name; const description = brand.desc; const { classes, width } = this.props; return (
{title} Help & Support this.showResult(values)} />
); } } Settings.propTypes = { classes: PropTypes.object.isRequired, width: PropTypes.string.isRequired, }; export default withStyles(styles)(withWidth()(Settings));