Issue: Use UserStore in ProfileCard Component
📋 Description
Replace hardcoded user data in ProfileCard component with dynamic data from the userStore to display real user information.
🎯 Objective
- Display real user data instead of hardcoded values
- Integrate ProfileCard with existing userStore
- Improve data consistency across the application
- Follow best practices for state management
📍 File location
src/features/buyer/profile/components/ProfileCard.tsx
🔄 Current state
The ProfileCard currently uses hardcoded data:
🔧 Required changes
📝 Implementation details
Import statement:
import { useUser } from '@/shared/stores/userStore';
Hook usage:
const { name, email } = useUser();
Data replacement:
// Instead of:
<p>Matias Aguilar</p>
<p>xaguilar@gmail.com</p>
// Use:
<p>{name || 'User Name'}</p>
<p>{email || 'user@example.com'}</p>
✅ Acceptance criteria
🛠️ Technical considerations
- Use existing userStore from
@/shared/stores/userStore
- Ensure proper error handling for missing data
- Maintain responsive design
- Follow existing component patterns
📝 Additional notes
- The userStore already has the necessary hooks:
useUser()
- Store includes:
name, email, walletAddress, role
- Component should be reactive to store changes
- Consider adding loading states if needed
🏷️ Labels
bug
buyer
profile
state-management
refactor
Issue: Use UserStore in ProfileCard Component
📋 Description
Replace hardcoded user data in ProfileCard component with dynamic data from the userStore to display real user information.
🎯 Objective
📍 File location
🔄 Current state
The ProfileCard currently uses hardcoded data:
🔧 Required changes
📝 Implementation details
Import statement:
Hook usage:
Data replacement:
✅ Acceptance criteria
🛠️ Technical considerations
@/shared/stores/userStore📝 Additional notes
useUser()name,email,walletAddress,role🏷️ Labels
bugbuyerprofilestate-managementrefactor