Skip to content

Commit

Permalink
clean the code
Browse files Browse the repository at this point in the history
  • Loading branch information
Afonso-santos committed Feb 26, 2024
1 parent 92067d6 commit feacd58
Showing 1 changed file with 0 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ import {
TeamOutlined,
MenuOutlined,
CloseCircleOutlined,
DownOutlined,
} from "@ant-design/icons";
import { ThemeToggle, useAuth, useTheme } from "@coderdojobraga/ui";
import { ChevronDownIcon } from "@heroicons/react/24/solid";

import { MENU_ENTRIES } from "../config";
import { getUserInitials } from "../utils";
Expand All @@ -40,8 +38,6 @@ const events = {
// Add more events here if needed
};

const { SubMenu } = Menu;

interface LoginButtonProps {
isLoading: boolean;
isDark: boolean;
Expand Down Expand Up @@ -70,25 +66,12 @@ interface MenuDrawerProps {
const MenuDrawer = ({ isDrawerVisible, setVisibleDrawer }: MenuDrawerProps) => {
const { user, isLoading, logout } = useAuth();
const { isDark } = useTheme();
const [openKeys, setOpenKeys] = useState<string[]>([]);

const handleOpenMenu = (key: string) => {
setOpenKeys([key]);
};

const handleCloseMenu = () => {
setOpenKeys([]);
};

const onDrawerLogOut = () => {
logout();
setVisibleDrawer(false);
};
const [eventosDropdownVisible, setEventosDropdownVisible] = useState(false);

const handleEventosDropdownVisibleChange = (visible: any) => {
setEventosDropdownVisible(visible);
};
return (
<Drawer
className={`flex md:hidden ${isDark ? "dark-menu-drawer" : ""}`}
Expand Down Expand Up @@ -248,30 +231,3 @@ function MobileNavBar({ landing = false }: { landing?: boolean }) {
}

export default MobileNavBar;

{
/* <Menu
className={`flex flex-col items-center text-xl uppercase ${isDark ? "dark-menu" : ""
}`}
mode="inline"
style={{ width: 256, marginTop: '-10px', marginBottom: '-14px' }}
openKeys={openKeys}
onOpenChange={(keys) => setOpenKeys(keys)}
>
<SubMenu
className={`flex flex-col items-center text-xl uppercase ${isDark ? "dark-menu" : ""
}`}
title="Eventos"
popupClassName={isDark ? "dark-menu-submenu" : ""}
>
<Menu.Item key="1">
<Link href="/web/dojocon">Dojo Con</Link>
</Menu.Item>
<Menu.Item key="2">
<Link href="/web/codercamp">Code Camp</Link>
</Menu.Item>
</SubMenu>
</Menu> */
}

0 comments on commit feacd58

Please sign in to comment.