setUsername refactor

This commit is contained in:
Belen Curcio
2017-11-20 15:35:16 -03:00
parent debda80db1
commit dbe88e58f4
3 changed files with 50 additions and 5 deletions
@@ -1,4 +1,5 @@
import React from 'react';
import PropTypes from 'prop-types';
import styles from './styles.css';
import {Dialog, Alert, TextField, Button} from 'plugin-api/beta/client/components/ui';
import {FakeComment} from './FakeComment';
@@ -62,4 +63,14 @@ const CreateUsernameDialog = ({
</Dialog>
);
CreateUsernameDialog.propTypes = {
open: PropTypes.bool,
handleClose: PropTypes.func,
formData: PropTypes.object,
handleSubmitUsername: PropTypes.func,
handleChange: PropTypes.func,
auth: PropTypes.object,
errors: PropTypes.object,
};
export default CreateUsernameDialog;