Skip to content

Commit

Permalink
Funcionando
Browse files Browse the repository at this point in the history
  • Loading branch information
bekaxuci committed Oct 4, 2024
1 parent 8f4a54a commit 1c1a701
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 240 deletions.
39 changes: 0 additions & 39 deletions migrations/versions/1bc993986076_.py

This file was deleted.

32 changes: 0 additions & 32 deletions migrations/versions/5f803f77429b_.py

This file was deleted.

53 changes: 0 additions & 53 deletions migrations/versions/85c2437114a0_.py

This file was deleted.

19 changes: 0 additions & 19 deletions migrations/versions/88df2626220d.py

This file was deleted.

53 changes: 0 additions & 53 deletions migrations/versions/d8c792fcdaca_.py

This file was deleted.

22 changes: 22 additions & 0 deletions migrations/versions/dcc529d4f557.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
"""Migration description
Revision ID: dcc529d4f557
Revises:
Create Date: 2024-10-04 12:00:00.000000
"""
from alembic import op
import sqlalchemy as sa

# revision identifiers, used by Alembic.
revision = 'dcc529d4f557'
down_revision = None # Cambia esto si hay una migración anterior
branch_labels = None
depends_on = None

def upgrade():
pass # Aquí irían las operaciones para actualizar la base de datos


def downgrade():
pass # Aquí irían las operaciones para revertir la migración
39 changes: 0 additions & 39 deletions migrations/versions/f0cbe56c7f2d.py

This file was deleted.

13 changes: 8 additions & 5 deletions src/front/js/component/panelControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ const ControlPanel = ({ onLogout }) => {
window.location.href = process.env.REACT_APP_BACKEND_URL;
};

const handleClick = () => {
// Cambiar la ubicación y recargar la página
window.location.href = '/profile';
};

return (
<div className="profile-control-panel">
<h1>Panel de Control</h1>
Expand Down Expand Up @@ -50,11 +55,9 @@ const ControlPanel = ({ onLogout }) => {
</Link>
</li>
</ul>
<Link to="/profile">
<button id="mi-perfil-button">
<FontAwesomeIcon icon={faUser} /> Mi Perfil
</button>
</Link>
<button id="mi-perfil-button" onClick={handleClick}>
<FontAwesomeIcon icon={faUser} /> Mi Perfil
</button>
<button onClick={handleLogout} className="logout-button">
<FontAwesomeIcon icon={faSignOutAlt} /> Cerrar Sesión
</button>
Expand Down

0 comments on commit 1c1a701

Please sign in to comment.