Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
Update menu order
Dave Earley19575f20423f
diff --git a/frontend/src/components/common/GlobalMenu/index.tsx b/frontend/src/components/common/GlobalMenu/index.tsxindex d473854cc..c5ca740b1 100644--- a/frontend/src/components/common/GlobalMenu/index.tsx+++ b/frontend/src/components/common/GlobalMenu/index.tsx@@ -9,12 +9,20 @@ import {useDisclosure} from "@mantine/hooks";import {AboutModal} from "../../modals/AboutModal/index.tsx";import {getConfig} from "../../../utilites/config.ts";+interface Link {+ label: string;+ icon: any;+ link?: string;+ target?: string;+ onClick?: (event: any) => void;+}+export const GlobalMenu = () => {const {data: me} = useGetMe();const [aboutModalOpen, {open: openAboutModal, close: closeAboutModal}] =useDisclosure(false);- const links = [+ const links: Link[] = [{label: t`My Profile`,icon: IconUser,@@ -25,16 +33,6 @@ export const GlobalMenu = () => {icon: IconSettingsCog,link: `/account/settings`,},- {- label: t`Logout`,- icon: IconLogout,- onClick: (event: any) => {- event.preventDefault();- authClient.logout();- localStorage.removeItem("token");- window.location.href = "/auth/login";- },- },];if (!getConfig("VITE_HIDE_ABOUT_LINK")) {@@ -45,6 +43,17 @@ export const GlobalMenu = () => {});}+ links.push({+ label: t`Logout`,+ icon: IconLogout,+ onClick: (event: any) => {+ event.preventDefault();+ authClient.logout();+ localStorage.removeItem("token");+ window.location.href = "/auth/login";+ },+ });+return (<><Menu shadow="md" width={200}>