import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import classNames from 'classnames'; import { Field, reduxForm } from 'redux-form/immutable'; import ArrowForward from '@material-ui/icons/ArrowForward'; import Help from '@material-ui/icons/Help'; import dummy from 'ba-api/dummyContents'; import avatarApi from 'ba-api/avatars'; import { Button, Popover, FormControl, IconButton, Typography, InputAdornment, Paper, Avatar, } from '@material-ui/core'; import { TextFieldRedux } from './ReduxFormMUI'; import styles from './user-jss'; // validation functions const required = value => (value == null ? 'Required' : undefined); class LockForm extends React.Component { state = { anchorEl: null, }; handleShowHint = event => { this.setState({ anchorEl: event.currentTarget, }); }; handleClose = () => { this.setState({ anchorEl: null, }); }; render() { const { classes, handleSubmit, pristine, submitting } = this.props; const { anchorEl } = this.state; return (