diff --git a/src/Components/Login/Login.tsx b/src/Components/Login/Login.tsx
index 2e6c9dd..47a60f5 100644
--- a/src/Components/Login/Login.tsx
+++ b/src/Components/Login/Login.tsx
@@ -18,7 +18,6 @@ import { populateMenuItems } from '../../store/features/Auth/MenuItemsSlice'
import { RootState } from '../../store/store'
import Leyend from '../../images/leyend.png'
import jwt_decode from 'jwt-decode'
-import IjwtStructure from '../../Interfaces/Auth/IjwtStructure'
interface IProps {}
@@ -48,8 +47,6 @@ export const Login: FC
= (props) => {
localStorage.setItem('tokenInfo', JSON.stringify(jwt_decode(response.data.token)))
dispatch(populateMenuItems(response.data.menu))
dispatch(populateUserProfile(response.data.token))
- //loadCatalogs()
- //alert(localStorage.getItem('token'))
navigate('/', { replace: true })
})
.catch((e: Error) => {
@@ -88,9 +85,6 @@ export const Login: FC = (props) => {
const validateToken = () => {
DSAuth.Validate()
.then((response) => {
- // dispatch(populateMenuItems(JSON.parse(menuStr)))
- // dispatch(populateUserProfile(token))
- //alert('token valido')
loadCatalogs()
navigate('/', { replace: true })
})
@@ -106,11 +100,11 @@ export const Login: FC = (props) => {
}, [token])
useEffect(() => {
- //alert('user logued:' + UserLogued)
- if (UserLogued) {
- //loadCatalogs()
+ if (menuStr) {
+ dispatch(populateMenuItems(JSON.parse(menuStr)))
+ dispatch(populateUserProfile(token))
}
- }, [UserLogued])
+ }, [menuStr])
return (
diff --git a/src/Components/Operaciones/Viaje/Viaje.tsx b/src/Components/Operaciones/Viaje/Viaje.tsx
index 5229d82..a05b60a 100644
--- a/src/Components/Operaciones/Viaje/Viaje.tsx
+++ b/src/Components/Operaciones/Viaje/Viaje.tsx
@@ -734,7 +734,7 @@ export const Viaje: FC = (props) => {
setAduana(parseInt(e.target.value))
}}
value={Aduana}
- disabled={DisableAduana}
+ disabled={Hazmat === 1}
className='form-select form-select-sm dialogLabel'
>
{CatAduanas
diff --git a/src/css/generalStyles.css b/src/css/generalStyles.css
index 0baff24..0b40726 100644
--- a/src/css/generalStyles.css
+++ b/src/css/generalStyles.css
@@ -12,3 +12,8 @@
.rowSplit {
padding-top: '5px'
}
+
+.divTipoCatalogo {
+ height: 200px;
+ overflow-y: scroll;
+}