Skip to content

Commit

Permalink
chore(temp): hide about and contact navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
joshxfi committed Mar 12, 2022
1 parent a305282 commit f068a92
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 20 deletions.
30 changes: 12 additions & 18 deletions src/components/Nav/NavMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import React, { Fragment } from 'react';
import { Popover, Transition } from '@headlessui/react';
import {
AiFillContacts,
AiFillHome,
AiFillInfoCircle,
AiFillGithub,
AiFillSwitcher,
} from 'react-icons/ai';
import { AiFillHome, AiFillGithub, AiFillSwitcher } from 'react-icons/ai';

import { MenuBtn } from '@/components/Button';
import { useAuth } from '@/contexts/AuthContext';
Expand All @@ -19,16 +13,16 @@ const NavMenu = () => {
route: user ? 'home' : '',
Icon: AiFillHome,
},
{
label: 'About',
route: 'about',
Icon: AiFillInfoCircle,
},
{
label: 'Contact',
route: 'contact',
Icon: AiFillContacts,
},
// {
// label: 'About',
// route: 'about',
// Icon: AiFillInfoCircle,
// },
// {
// label: 'Contact',
// route: 'contact',
// Icon: AiFillContacts,
// },
{
label: 'GitHub',
href: 'https://github.com/joshxfi/trackAsOne',
Expand Down Expand Up @@ -60,7 +54,7 @@ const NavMenu = () => {
>
<Popover.Panel className='absolute top-14 right-0 flex w-[150px] flex-col space-y-4 overflow-hidden rounded bg-white p-2 text-sm text-primary shadow-md ring-1 ring-black ring-opacity-5'>
{menuItems.map((props) => (
<MenuBtn {...props} />
<MenuBtn key={props.label} {...props} />
))}
</Popover.Panel>
</Transition>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const Navbar: React.FC = () => {

const navItems = [
{ name: 'Home', href: user ? '/home' : '/' },
{ name: 'About', href: '/about' },
{ name: 'Contact', href: '/contact' },
// { name: 'About', href: '/about' },
// { name: 'Contact', href: '/contact' },
];

return (
Expand Down
1 change: 1 addition & 0 deletions src/components/Room/Task.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ const Task = ({ task }: { task: ITask }) => {
<div className={`task-indicator ${displayIndicator()}`} />
{task.imgUrls.map((url) => (
<button
key={url}
type='button'
onClick={() => {
setDisplayImage(url);
Expand Down

0 comments on commit f068a92

Please sign in to comment.