fix: Mis Direcciones now shows address history instead of notifications

This commit is contained in:
Antoni Nuñez Romeu
2026-07-07 01:16:06 +02:00
parent 4f36820d34
commit c46a3ee7ea
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
import React, { useEffect, useState, useRef } from 'react';
import './ProfileView.css';
function ProfileView({ currentUser, onProfileSaved, onShowSaved, onLogout, onAdminClick }) {
function ProfileView({ currentUser, onProfileSaved, onLogout, onAdminClick }) {
const [firstName, setFirstName] = useState(currentUser?.first_name || '');
const [lastName, setLastName] = useState(currentUser?.last_name || '');
const [avatarUrl, setAvatarUrl] = useState(currentUser?.avatar_url || '');
@@ -182,7 +182,7 @@ function ProfileView({ currentUser, onProfileSaved, onShowSaved, onLogout, onAdm
{/* Search History Section */}
<div className="profile-menu">
<button className="profile-menu-item" onClick={onShowSaved}>
<div className="profile-menu-item">
<div className="menu-item-icon menu-item-icon--primary">
<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
@@ -192,7 +192,7 @@ function ProfileView({ currentUser, onProfileSaved, onShowSaved, onLogout, onAdm
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" className="menu-item-chevron">
<polyline points="9 18 15 12 9 6" />
</svg>
</button>
</div>
{searchHistory.length > 0 && (
<div className="profile-search-history">