Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/lc/253/add demo to navbar #255

Merged
merged 2 commits into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion services/web-app/src/components/buttons/iconButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const IconButton: React.FC<HeaderButtonProps> = ({ icon, to, setOpen }) => {
return (
<li className="group relative">
<Link
className="p-1 sm:mx-10 justify-right"
className="p-1 sm:mx-10 text-black justify-right"
onClick={() => setOpen && setOpen(false)}
href={to}
>
Expand Down
12 changes: 11 additions & 1 deletion services/web-app/src/components/navbar/NavItems.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";
import { HomeIcon, PersonIcon } from "@radix-ui/react-icons";
import { HomeIcon, Pencil1Icon, PersonIcon } from "@radix-ui/react-icons";
import { signIn, signOut, useSession } from "next-auth/react";
import React, { Dispatch, HTMLAttributes, SetStateAction } from "react";

Expand Down Expand Up @@ -35,6 +35,11 @@ export const NavItems = ({
to="/"
setOpen={setOpen}
/>
<IconButton
icon={<Pencil1Icon height={20} width={20} />}
to="/demo"
setOpen={setOpen}
/>
<IconButton
icon={<PersonIcon height={20} width={20} />}
to="/profile"
Expand All @@ -55,6 +60,11 @@ export const NavItems = ({
to="/"
setOpen={setOpen}
/>
<IconButton
icon={<Pencil1Icon height={20} width={20} />}
to="/demo"
setOpen={setOpen}
/>
<BasicButton
text="Sign In"
onClick={async () => {
Expand Down