Skip to content

Commit

Permalink
Fix nav
Browse files Browse the repository at this point in the history
  • Loading branch information
GrandeJames committed Nov 10, 2023
1 parent c799c00 commit 97389d6
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions my-app/src/components/navbar/SideNavbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ const SideNavbar = () => {
const publicNav = [
{ label: "Home", icon: HomeIcon, link: "/home" },
{ label: "Report Event", icon: PlusCircleIcon, link: "/report" },
{ label: "Data Insights", icon: ChartPieIcon, link: "/data-insights" },
];

const orgMemberNav = [
...publicNav,
{ label: "Data Insights", icon: ChartPieIcon, link: "/data-insights" },
{
label: "Organization Events",
icon: RectangleGroupIcon,
Expand Down Expand Up @@ -69,7 +69,7 @@ const SideNavbar = () => {
];

const NavContainer = () => (
<ul className="menu p-5 w-72 min-h-screen sticky top-0 bg-gray-100 pt-10 font-medium">
<ul className="menu p-5 w-72 min-h-screen sticky top-0 bg-base-100 pt-10 font-medium border-r border-solid border-gray-300">
{!session && <NavContent nav={publicNav} />}
{session && session.user.role === "org_member" && <NavContent nav={orgMemberNav} />}
{session && session.user.role === "org_admin" && <NavContent nav={orgAdminNav} />}
Expand Down Expand Up @@ -104,12 +104,9 @@ const SideNavbar = () => {
</div>
) : (
<div className="flex flex-col gap-2 p-5">
<Link href={"/register"} className="bg-primary rounded-full p-3 text-center">
Create an account
</Link>
<Link
href={"/auth/credentials-signin"}
className="rounded-full p-3 text-center border-slate-800 border-solid border"
className="rounded-full p-3 text-center bg-base-300 border-slate-800 border-solid"
>
Log in
</Link>
Expand Down Expand Up @@ -138,7 +135,7 @@ const SideNavbar = () => {

return (
<li className="m-1">
<Link href={link} className={`${isLinkActive(link) ? "font-bold" : ""}`}>
<Link href={link} className={`${isLinkActive(link) ? "font-extrabold" : ""}`}>
{icon && <IconElement height={ICON_HEIGHT} />}
<span>{label}</span>
</Link>
Expand Down

0 comments on commit 97389d6

Please sign in to comment.