Nombre
{window.localStorage.getItem("ID")}
diff --git a/healthmanager/src/Principal.css b/healthmanager/src/Principal.css
index 2017916..89e5215 100644
--- a/healthmanager/src/Principal.css
+++ b/healthmanager/src/Principal.css
@@ -1,5 +1,4 @@
#headerSistema {
- margin-top: 10px;
margin-left: 50px;
text-align: left;
text-shadow:
@@ -55,10 +54,7 @@
margin-top: 80px;
margin-left: 35px;
}
- body{
- background: rgb(0,22,36);
- background: linear-gradient(90deg, rgba(0,22,36,0.6946428229494923) 0%, rgba(9,92,121,1) 35%, rgba(0,212,255,1) 100%);
- }
+
#img1{
margin-right: 10px;
}
diff --git a/healthmanager/src/Principal.jsx b/healthmanager/src/Principal.jsx
index 8c5878b..0d16bfd 100644
--- a/healthmanager/src/Principal.jsx
+++ b/healthmanager/src/Principal.jsx
@@ -15,10 +15,8 @@ import "./Principal.css";
import { useNavigate } from "react-router-dom";
function Principal(props) {
const navigate = useNavigate();
- const [publicacionesData, setPublicacionesData] = useState([]);
- // eslint-disable-next-line no-unused-vars
- const [Cargando, setCargando] = useState(false);
const correoUsuario = window.localStorage.getItem("Usuario");
+ const usuarioSesion = window.localStorage.getItem("ID");
const datosUsuario = async () => {
try {
@@ -53,22 +51,6 @@ function Principal(props) {
}
};
UsuarioData();
-
-
- const cerrarSesion = () => {
- navigate("/");
- };
-
- const misRecetas = () => {
- navigate("/DescargaRecetas");
- };
-
- const miPerfil = () => {
- navigate("/MiPerfil");
- };
-
-
- const usuarioSesion = window.localStorage.getItem("ID");
const image1 =
{
@@ -155,10 +137,22 @@ function Principal(props) {
transition: theme.transitions.create("opacity"),
}));
+ const cerrarSesion = () => {
+ navigate("/");
+ };
+
+ const misRecetas = () => {
+ navigate("/DescargaRecetas");
+ };
+
+ const miPerfil = () => {
+ navigate("/MiPerfil");
+ };
+
return (
<>
-
+
¡Hola {usuarioSesion}!
diff --git a/healthmanager/src/RecetaMedica.jsx b/healthmanager/src/RecetaMedica.jsx
index d3fbbbb..ac46a5f 100644
--- a/healthmanager/src/RecetaMedica.jsx
+++ b/healthmanager/src/RecetaMedica.jsx
@@ -120,7 +120,9 @@ function RecetaMedica(props){
}
return (
- <>