move email above joined date in user profile
This commit is contained in:
@@ -74,6 +74,9 @@ export default async function UserPage({ params }: UserPageProps) {
|
|||||||
@{user.username}
|
@{user.username}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
<p className="text-gray-600 text-sm mb-1">
|
||||||
|
{user.email}
|
||||||
|
</p>
|
||||||
<div className="flex items-center space-x-4 text-sm">
|
<div className="flex items-center space-x-4 text-sm">
|
||||||
<span className="text-gray-500">
|
<span className="text-gray-500">
|
||||||
Joined: {new Date(user.createdAt).toLocaleDateString()}
|
Joined: {new Date(user.createdAt).toLocaleDateString()}
|
||||||
@@ -91,25 +94,6 @@ export default async function UserPage({ params }: UserPageProps) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Email Section */}
|
|
||||||
<div className="bg-white rounded-lg shadow-md p-6 mb-6">
|
|
||||||
<h2 className="text-xl font-semibold text-gray-800 mb-4">{t("email")}</h2>
|
|
||||||
<div className="flex items-center justify-between">
|
|
||||||
<div className="flex items-center space-x-3">
|
|
||||||
<span className="text-gray-700">{user.email}</span>
|
|
||||||
</div>
|
|
||||||
{user.emailVerified ? (
|
|
||||||
<span className="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-green-100 text-green-800">
|
|
||||||
✓ {t("verified")}
|
|
||||||
</span>
|
|
||||||
) : (
|
|
||||||
<span className="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-yellow-100 text-yellow-800">
|
|
||||||
{t("unverified")}
|
|
||||||
</span>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* Account Info */}
|
{/* Account Info */}
|
||||||
<div className="bg-white rounded-lg shadow-md p-6 mb-6">
|
<div className="bg-white rounded-lg shadow-md p-6 mb-6">
|
||||||
<h2 className="text-xl font-semibold text-gray-800 mb-4">{t("accountInfo")}</h2>
|
<h2 className="text-xl font-semibold text-gray-800 mb-4">{t("accountInfo")}</h2>
|
||||||
|
|||||||
Reference in New Issue
Block a user