File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import { Link } from '../Wrappers';
2020import ColorChangeThemePopper from './components/ColorChangeThemePopper' ;
2121
2222import EditUser from '../../pages/user/EditUser' ;
23- import AddUser from '../../pages/CRUD/Users/form/UsersForm' ;
2423
2524// pages
2625import 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 } >
Original file line number Diff line number Diff 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 } ,
You can’t perform that action at this time.
0 commit comments