refactor: Standardize user dashboard path to /user/dashboard and refine HeroSection helper text styling.
This commit is contained in:
@@ -20,7 +20,7 @@ export function CommonHeader() {
|
||||
const userRole = (session?.user as any)?.role;
|
||||
|
||||
// Determine dashboard link based on user role
|
||||
const dashboardLink = userRole === 'AGENT' ? '/agent/dashboard' : '/user/userdashboard';
|
||||
const dashboardLink = userRole === 'AGENT' ? '/agent/dashboard' : '/user/dashboard';
|
||||
|
||||
return (
|
||||
<header className="bg-[#648188] rounded-[20px] px-8">
|
||||
|
||||
@@ -47,7 +47,7 @@ export function Header() {
|
||||
</svg>
|
||||
</button>
|
||||
{/* Profile */}
|
||||
<Link href="/user/userdashboard" className="p-2 hover:bg-white/10 rounded-full transition-colors">
|
||||
<Link href="/user/dashboard" className="p-2 hover:bg-white/10 rounded-full transition-colors">
|
||||
<svg className="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" />
|
||||
</svg>
|
||||
|
||||
Reference in New Issue
Block a user