main layout
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
|
||||
import { useSession, signOut } from 'next-auth/react';
|
||||
import { useRouter, usePathname } from 'next/navigation';
|
||||
import { useEffect } from 'react';
|
||||
import { useEffect, ReactElement } from 'react';
|
||||
import Link from 'next/link';
|
||||
|
||||
const userNavItems = [
|
||||
{ href: '/user/dashboard', label: 'Dashboard', icon: 'home' },
|
||||
{ href: '/user/userprofile', label: 'Dashboard', icon: 'home' },
|
||||
{ href: '/user/properties', label: 'Browse Properties', icon: 'building' },
|
||||
{ href: '/user/favorites', label: 'Favorites', icon: 'heart' },
|
||||
{ href: '/user/inquiries', label: 'My Inquiries', icon: 'message' },
|
||||
@@ -14,7 +14,7 @@ const userNavItems = [
|
||||
{ href: '/user/settings', label: 'Settings', icon: 'settings' },
|
||||
];
|
||||
|
||||
const icons: Record<string, JSX.Element> = {
|
||||
const icons: Record<string, ReactElement> = {
|
||||
home: (
|
||||
<svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" />
|
||||
@@ -86,7 +86,7 @@ export default function UserLayout({
|
||||
<header className="bg-white/80 backdrop-blur-sm shadow-sm fixed top-0 left-0 right-0 z-50">
|
||||
<div className="px-4 sm:px-6 lg:px-8">
|
||||
<div className="flex justify-between items-center h-16">
|
||||
<Link href="/user/dashboard">
|
||||
<Link href="/user/userprofile">
|
||||
<img src="/assets/logo.svg" alt="RE-QuestN" className="h-8" />
|
||||
</Link>
|
||||
<div className="flex items-center gap-4">
|
||||
|
||||
Reference in New Issue
Block a user