Skip to content

Commit a3b7f83

Browse files
committed
Fix users management
1 parent b6b693f commit a3b7f83

File tree

7 files changed

+13
-8
lines changed

7 files changed

+13
-8
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
# [2.3.1] - 18/07/2022
4+
5+
- Fix users management
6+
37
# [2.3.0] - 01/06/2022
48

59
- Updated from MUI4 to MUI5, fixed Dark Theme

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-material-full",
33
"description": "React Material Admin Full",
4-
"version": "2.3.0",
4+
"version": "2.3.1",
55
"private": true,
66
"homepage": "./",
77
"scripts": {

src/actions/users/usersFormActions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const actions = {
4747
type: 'USERS_FORM_CREATE_SUCCESS',
4848
});
4949
showSnackbar({ type: 'success', message: 'Users created' });
50-
dispatch(push('/admin/users'));
50+
dispatch(push('/app/users'));
5151
});
5252
} catch (error) {
5353
Errors.handle(error);

src/components/Layout/Layout.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import { Link } from '../Wrappers';
2020
import ColorChangeThemePopper from './components/ColorChangeThemePopper';
2121

2222
import EditUser from '../../pages/user/EditUser';
23-
import AddUser from '../../pages/CRUD/Users/form/UsersForm';
2423

2524
// pages
2625
import Dashboard from '../../pages/dashboard';
@@ -181,7 +180,7 @@ function Layout(props) {
181180
/>
182181

183182
<Route path={'/app/users'} exact component={UsersTablePage} />
184-
<Route path={'/app/user/new'} exact component={AddUser} />
183+
<Route path={'/app/user/new'} exact component={UsersFormPage} />
185184
<Route
186185
path={'/app/users/:id/edit'}
187186
exact

src/pages/CRUD/Users/form/UsersFormPage.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const UsersFormPage = (props) => {
4343
}, [match, dispatch]);
4444

4545
return (
46-
<React.Fragment>
46+
<>
4747
{dispatched && (
4848
<UsersForm
4949
saveLoading={saveLoading}
@@ -53,10 +53,10 @@ const UsersFormPage = (props) => {
5353
isEditing={isEditing()}
5454
isProfile={isProfile()}
5555
onSubmit={doSubmit}
56-
onCancel={() => dispatch(push('/admin/users'))}
56+
onCancel={() => dispatch(push('/app/users'))}
5757
/>
5858
)}
59-
</React.Fragment>
59+
</>
6060
);
6161
};
6262

src/pages/CRUD/Users/table/UsersTable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ const UsersTable = () => {
261261
<div>
262262
<Widget title='Users' disableWidgetMenu>
263263
<Box className={classes.actions}>
264-
<Link to='/admin/users/new'>
264+
<Link to='/app/user/new'>
265265
<Button variant='contained'>New</Button>
266266
</Link>
267267
<Button type='button' variant='contained' onClick={addFilter}>

src/pages/login/styles.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default makeStyles((theme) => ({
1919
flexDirection: 'column',
2020
justifyContent: 'center',
2121
alignItems: 'center',
22+
padding: '1rem',
2223
[theme.breakpoints.down('md')]: {
2324
width: '50%',
2425
},
@@ -34,6 +35,7 @@ export default makeStyles((theme) => ({
3435
color: 'white',
3536
fontWeight: 500,
3637
fontSize: 84,
38+
textAlign: 'center',
3739
[theme.breakpoints.down('md')]: {
3840
fontSize: 48,
3941
},

0 commit comments

Comments
 (0)