import React, { PropTypes } from 'react'; import { Textfield, Dialog, DialogTitle, DialogContent, DialogActions, Button } from 'react-mdl'; import dialogPolyfill from 'dialog-polyfill/dialog-polyfill.js'; class EditUserComponent extends React.Component { static propTypes () { return { user: PropTypes.object.isRequired, updateUserName: PropTypes.func.isRequired, save: PropTypes.func.isRequired, }; } componentDidMount () { this.initPolyfill(); } handleSubmit = (evt) => { evt.preventDefault(); this.props.save(); } initPolyfill () { const dialogs = document.querySelectorAll('dialog'); [].slice.call(dialogs).forEach(dialog => dialogPolyfill.registerDialog(dialog)); } render () { return (
Action required

You hav to specify a username to use Unleash. This will allow us to track changes.

this.props.updateUserName(e.target.value)} />
); } } export default EditUserComponent;