feat: Redesign the home page hero section with a new background image and enhanced search UI, and standardize user dashboard routing across the application.
This commit is contained in:
1 parent
db3b12507e
commit
5a845e4b5d
9 files changed
+174
-99
No files matched your search
@@ -25,7 +25,7 @@ export default function AgentLayout({
|
||||
// Redirect non-agents to user dashboard
|
||||
const userRole = (session.user as any)?.role;
|
||||
if (userRole !== 'AGENT') {
|
||||
router.replace('/user/userprofile');
|
||||
router.replace('/user/userdashboard');
|
||||
}
|
||||
}, [session, status, router]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user