File tree Expand file tree Collapse file tree 7 files changed +13
-8
lines changed Expand file tree Collapse file tree 7 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ # [ 2.3.1] - 18/07/2022
4
+
5
+ - Fix users management
6
+
3
7
# [ 2.3.0] - 01/06/2022
4
8
5
9
- Updated from MUI4 to MUI5, fixed Dark Theme
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-material-full" ,
3
3
"description" : " React Material Admin Full" ,
4
- "version" : " 2.3.0 " ,
4
+ "version" : " 2.3.1 " ,
5
5
"private" : true ,
6
6
"homepage" : " ./" ,
7
7
"scripts" : {
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ const actions = {
47
47
type : 'USERS_FORM_CREATE_SUCCESS' ,
48
48
} ) ;
49
49
showSnackbar ( { type : 'success' , message : 'Users created' } ) ;
50
- dispatch ( push ( '/admin /users' ) ) ;
50
+ dispatch ( push ( '/app /users' ) ) ;
51
51
} ) ;
52
52
} catch ( error ) {
53
53
Errors . handle ( error ) ;
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import { Link } from '../Wrappers';
20
20
import ColorChangeThemePopper from './components/ColorChangeThemePopper' ;
21
21
22
22
import EditUser from '../../pages/user/EditUser' ;
23
- import AddUser from '../../pages/CRUD/Users/form/UsersForm' ;
24
23
25
24
// pages
26
25
import Dashboard from '../../pages/dashboard' ;
@@ -181,7 +180,7 @@ function Layout(props) {
181
180
/>
182
181
183
182
< 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 } />
185
184
< Route
186
185
path = { '/app/users/:id/edit' }
187
186
exact
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ const UsersFormPage = (props) => {
43
43
} , [ match , dispatch ] ) ;
44
44
45
45
return (
46
- < React . Fragment >
46
+ < >
47
47
{ dispatched && (
48
48
< UsersForm
49
49
saveLoading = { saveLoading }
@@ -53,10 +53,10 @@ const UsersFormPage = (props) => {
53
53
isEditing = { isEditing ( ) }
54
54
isProfile = { isProfile ( ) }
55
55
onSubmit = { doSubmit }
56
- onCancel = { ( ) => dispatch ( push ( '/admin /users' ) ) }
56
+ onCancel = { ( ) => dispatch ( push ( '/app /users' ) ) }
57
57
/>
58
58
) }
59
- </ React . Fragment >
59
+ </ >
60
60
) ;
61
61
} ;
62
62
Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ const UsersTable = () => {
261
261
< div >
262
262
< Widget title = 'Users' disableWidgetMenu >
263
263
< Box className = { classes . actions } >
264
- < Link to = '/admin/users /new' >
264
+ < Link to = '/app/user /new' >
265
265
< Button variant = 'contained' > New</ Button >
266
266
</ Link >
267
267
< Button type = 'button' variant = 'contained' onClick = { addFilter } >
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ export default makeStyles((theme) => ({
19
19
flexDirection : 'column' ,
20
20
justifyContent : 'center' ,
21
21
alignItems : 'center' ,
22
+ padding : '1rem' ,
22
23
[ theme . breakpoints . down ( 'md' ) ] : {
23
24
width : '50%' ,
24
25
} ,
@@ -34,6 +35,7 @@ export default makeStyles((theme) => ({
34
35
color : 'white' ,
35
36
fontWeight : 500 ,
36
37
fontSize : 84 ,
38
+ textAlign : 'center' ,
37
39
[ theme . breakpoints . down ( 'md' ) ] : {
38
40
fontSize : 48 ,
39
41
} ,
You can’t perform that action at this time.
0 commit comments