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 (
{dummy.user.name}
) }} /> Hint: Type anything to unlock!
); } } LockForm.propTypes = { classes: PropTypes.object.isRequired, handleSubmit: PropTypes.func.isRequired, pristine: PropTypes.bool.isRequired, submitting: PropTypes.bool.isRequired, }; const LockFormReduxed = reduxForm({ form: 'immutableELockFrm', enableReinitialize: true, })(LockForm); export default withStyles(styles)(LockFormReduxed);