в Меню настроек установила email из localstorage
This commit is contained in:
parent
a81088a98e
commit
aabc4b11db
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user