Skip to content

Commit

Permalink
add condition for volunteer and mentor
Browse files Browse the repository at this point in the history
  • Loading branch information
norachams committed May 17, 2024
1 parent 5677575 commit 52210c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ export const Navbar = () => {
/>
</div>
<ul className="flex flex-col items-start justify-start divide-y divide-charcoalBlack">
{currentUser && renderNavItems(true)}
{currentUser && (currentUser.type === "mentor" || currentUser.type === "volunteer") && renderNavItems(true)}

<a
href="https://maps.app.goo.gl/Fxic5XJBzZjHP4Yt5"
target="_blank"
Expand Down Expand Up @@ -246,7 +247,7 @@ export const Navbar = () => {

<aside className="flex flex-col items-start justify-between h-[90%]">
<ul className="flex flex-col items-start justify-start gap-4 w-full">
{currentUser && renderNavItems(false)}
{currentUser && (currentUser.type === "mentor" || currentUser.type === "volunteer") && renderNavItems(true)}
<a
href="https://maps.app.goo.gl/Fxic5XJBzZjHP4Yt5"
target="_blank"
Expand All @@ -258,6 +259,7 @@ export const Navbar = () => {
Location
</li>
</a>
{currentUser && renderNavItems(false)}
<a
href="https://discord.com/invite/GxwvFEn9TB"
target="_blank"
Expand Down

0 comments on commit 52210c4

Please sign in to comment.