import React from 'react'; import { Helmet } from 'react-helmet'; import brand from 'ba-api/brand'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import { LockForm } from 'ba-components'; import styles from 'ba-components/Forms/user-jss'; import { Grid } from '@material-ui/core'; class ResetPassword extends React.Component { state = { valueForm: [] } submitForm(values) { setTimeout(() => { this.setState({ valueForm: values }); console.log(`You submitted:\n\n${this.state.valueForm}`); window.location.href = '/app'; }, 500); // simulate server latency } render() { const title = brand.name + ' - Lock Screen'; const description = brand.desc; const { classes } = this.props; return (
{title}
{/* ----------------------------------------------------------------------*/} {/* Load Login Form */} this.submitForm(values)} />
); } } ResetPassword.propTypes = { classes: PropTypes.object.isRequired, }; export default withStyles(styles)(ResetPassword);