Use different navigation based on user login status
cgen-b9cb090a46414f32872b006ac9c18f09
This commit is contained in:
parent
6ed1bcc996
commit
759bac69d8
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ export default function Layout({ children }: LayoutProps) {
|
|||
|
||||
{/* Navigation */}
|
||||
<nav className="hidden md:flex items-center space-x-8">
|
||||
{navigation.map((item, index) => (
|
||||
{(user && profile ? userNavigation : navigation).map((item, index) => (
|
||||
<Link
|
||||
key={item.name}
|
||||
to={item.href}
|
||||
|
|
|
|||
Loading…
Reference in a new issue