File tree 4 files changed +11
-14
lines changed
4 files changed +11
-14
lines changed Original file line number Diff line number Diff line change 1
1
export * from './theme-provider.component' ;
2
2
export * from './theme.hooks' ;
3
+ export * from './theme' ;
Original file line number Diff line number Diff line change 1
1
import { useMutation } from '@tanstack/react-query' ;
2
2
import { useNavigate } from '@tanstack/react-router' ;
3
- import { queryClient } from '#core/react-query' ;
3
+ import { queryClient , usersQueryKeys } from '#core/react-query' ;
4
4
import { saveUserRepository } from './create.repository' ;
5
5
import { Usuario } from './create.vm' ;
6
- import { usersQueryKeys } from '../users-keys' ;
7
6
8
7
interface UseSaveUserMutationResult {
9
8
saveUser : ( user : Usuario ) => void ;
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
-
3
2
import { Form , Formik } from 'formik' ;
4
- import { useWithTheme } from '#core/theme' ;
3
+ import { Button } from '@mui/material' ;
4
+ import { NavigationButton } from '#common/components' ;
5
5
import { UnidadRolList } from '#core/api/lookups/unidad-rol' ;
6
6
import { Usuario } from './edit-user-sheet.vm' ;
7
- import { Button } from '@mui/material' ;
8
7
import { AditionalPermissions , UserDetails } from './components' ;
9
- import { NavigationButton } from '#common/components' ;
10
- import * as innerClasses from './edit-user-sheet.styles' ;
11
8
import { formValidation } from './validations' ;
9
+ import * as classes from './edit-user-sheet.styles' ;
12
10
13
11
interface Props {
14
12
usuario : Usuario ;
@@ -18,7 +16,6 @@ interface Props {
18
16
19
17
export const EditUser : React . FC < Props > = ( props : Props ) => {
20
18
const { unidadRolList, onSubmit, usuario } = props ;
21
- const classes = useWithTheme ( innerClasses ) ;
22
19
return (
23
20
< >
24
21
< div className = { classes . root } >
Original file line number Diff line number Diff line change 1
1
import { css } from '@emotion/css' ;
2
- import { Theme } from '@mui/material ' ;
2
+ import { theme } from '#core/theme ' ;
3
3
4
- export const root = ( theme : Theme ) => css `
4
+ export const root = css `
5
5
display : flex;
6
6
flex-direction : column;
7
7
gap : ${ theme . spacing ( 4 ) } ;
8
8
` ;
9
9
10
- export const form = ( theme : Theme ) => css `
10
+ export const form = css `
11
11
display : flex;
12
12
flex-direction : column;
13
13
gap : ${ theme . spacing ( 4 ) } ;
14
14
` ;
15
15
16
- export const sectionContainer = ( theme : Theme ) => css `
16
+ export const sectionContainer = css `
17
17
border : 1px solid ${ theme . palette . grey [ 300 ] } ;
18
18
border-radius : 4px ;
19
19
padding : ${ theme . spacing ( 3 ) } ;
20
20
display : flex;
21
21
flex-direction : column;
22
22
` ;
23
23
24
- export const row = ( theme : Theme ) => css `
24
+ export const row = css `
25
25
display : grid;
26
26
grid-template-columns : repeat (4 , 1fr );
27
27
gap : ${ theme . spacing ( 2 ) } ;
@@ -39,7 +39,7 @@ export const apellidos = css`
39
39
}
40
40
` ;
41
41
42
- export const checkboxContainer = ( theme : Theme ) => css `
42
+ export const checkboxContainer = css `
43
43
display : flex;
44
44
gap : ${ theme . spacing ( 2 ) } ;
45
45
You can’t perform that action at this time.
0 commit comments