import React, { PropTypes } from 'react'; import { Textfield, Dialog, DialogTitle, DialogContent, DialogActions, Button } from 'react-mdl'; class EditUserComponent extends React.Component { static propTypes () { return { user: PropTypes.object.isRequired, updateUserName: PropTypes.func.isRequired, save: PropTypes.func.isRequired, }; } handleSubmit = (evt) => { evt.preventDefault(); this.props.save(); } render () { return (