little tidyups
This commit is contained in:
		@@ -15,7 +15,6 @@ import TableHead from '@material-ui/core/TableHead';
 | 
			
		||||
import TableRow from '@material-ui/core/TableRow';
 | 
			
		||||
import Box from '@material-ui/core/Box';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
import EditIcon from '@material-ui/icons/Edit';
 | 
			
		||||
import DeleteIcon from '@material-ui/icons/Delete';
 | 
			
		||||
import CloseIcon from '@material-ui/icons/Close';
 | 
			
		||||
@@ -157,7 +156,7 @@ class ManageUsersForm extends React.Component {
 | 
			
		||||
                      <TableRow>
 | 
			
		||||
                        <TableCell>Username</TableCell>
 | 
			
		||||
                        <TableCell align="center">Admin?</TableCell>
 | 
			
		||||
                        <TableCell align="center">Action</TableCell>
 | 
			
		||||
                        <TableCell />
 | 
			
		||||
                      </TableRow>
 | 
			
		||||
                    </TableHead>
 | 
			
		||||
                    <TableBody>
 | 
			
		||||
 
 | 
			
		||||
@@ -43,8 +43,8 @@ class UserForm extends React.Component {
 | 
			
		||||
    const { classes, user, creating, handleValueChange, handleCheckboxChange, onDoneEditing, onCancelEditing } = this.props;
 | 
			
		||||
    return (
 | 
			
		||||
      <ValidatorForm onSubmit={onDoneEditing} ref={this.formRef}>
 | 
			
		||||
        <Dialog onClose={onCancelEditing} aria-labelledby="modify-user-dialog-title" open={true} scroll="paper">
 | 
			
		||||
          <DialogTitle id="modify-user-dialog-title">Modify User</DialogTitle>
 | 
			
		||||
        <Dialog onClose={onCancelEditing} aria-labelledby="user-form-dialog-title" open={true} scroll="paper">
 | 
			
		||||
          <DialogTitle id="user-form-dialog-title">{creating ? 'Create' : 'Modify'} User</DialogTitle>
 | 
			
		||||
          <DialogContent>
 | 
			
		||||
            <TextValidator
 | 
			
		||||
              validators={creating ? ['required', 'uniqueUsername', 'matchRegexp:^[a-zA-Z0-9_\\.]{1,24}$'] : []}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user