import React from 'react'; import { Helmet } from 'react-helmet'; import brand from 'ba-api/brand'; import { withStyles } from '@material-ui/core/styles'; import { SourceReader, PapperBlock } from 'ba-components'; import { ReduxFormDemo } from './demos'; const styles = ({ root: { flexGrow: 1, } }); class ReduxForm extends React.Component { state = { valueForm: [] } 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 + ' - Form'; const description = brand.desc; const docSrc = 'containers/Forms/demos/'; return (
{title}
this.showResult(values)} />
); } } export default withStyles(styles)(ReduxForm);