в Меню настроек установила email из localstorage

This commit is contained in:
Tatyana 2025-08-26 21:21:11 +03:00
parent a81088a98e
commit aabc4b11db

View File

@ -15,6 +15,8 @@ const Settings: React.FC = () => {
history.push(getRouteLogin()) history.push(getRouteLogin())
} }
const userEmail = localStorage.getItem('userEmail');
return ( return (
<div className=" bg-gray-50 min-h-screen mx-auto pb-50" style={{ overflow: 'auto' }}> <div className=" bg-gray-50 min-h-screen mx-auto pb-50" style={{ overflow: 'auto' }}>
{/* Header */} {/* Header */}
@ -39,13 +41,13 @@ const Settings: React.FC = () => {
<div> <div>
<label className="block text-sm font-medium text-gray-600 mb-1">Логин</label> <label className="block text-sm font-medium text-gray-600 mb-1">Логин</label>
<div className="bg-gray-50 rounded-lg p-3 border border-gray-200"> <div className="bg-gray-50 rounded-lg p-3 border border-gray-200">
<span className="text-gray-800">alex_petrov</span> <span className="text-gray-800">{userEmail}</span>
</div> </div>
</div> </div>
<div> <div>
<label className="block text-sm font-medium text-gray-600 mb-1">Дата регистрации</label> <label className="block text-sm font-medium text-gray-600 mb-1">Дата регистрации</label>
<div className="bg-gray-50 rounded-lg p-3 border border-gray-200"> <div className="bg-gray-50 rounded-lg p-3 border border-gray-200">
<span className="text-gray-800">15 марта 2024</span> <span className="text-gray-800">Надо /не надо?</span>
</div> </div>
</div> </div>
</div> </div>