From 5004befc026992ec75c553fe39cf8618c7050fbf Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sat, 11 Jun 2022 10:33:14 +0300 Subject: [PATCH] Add /plus link to menu --- app/components/layout/Menu.tsx | 64 ++++++++++++++++++++++++++- app/components/layout/MobileMenu.tsx | 7 ++- app/constants.ts | 43 ------------------ app/routes/plus/suggestions.tsx | 1 + public/img/layout/plus.webp | Bin 0 -> 5870 bytes 5 files changed, 68 insertions(+), 47 deletions(-) create mode 100644 public/img/layout/plus.webp diff --git a/app/components/layout/Menu.tsx b/app/components/layout/Menu.tsx index 141a39c13..60dee632a 100644 --- a/app/components/layout/Menu.tsx +++ b/app/components/layout/Menu.tsx @@ -7,7 +7,6 @@ import { PatreonIcon } from "../icons/Patreon"; import { TwitterIcon } from "../icons/Twitter"; import DrawingSection from "./DrawingSection"; import * as React from "react"; -import { navItemsGrouped } from "~/constants"; import { useOnClickOutside } from "~/hooks/useOnClickOutside"; import { SENDOU_INK_DISCORD_URL, @@ -16,8 +15,10 @@ import { SENDOU_INK_TWITTER_URL, } from "~/utils/urls"; import { layoutIcon } from "~/utils/images"; +import { useUser } from "~/hooks/useUser"; export function Menu({ close }: { close: () => void }) { + const user = useUser(); const ref = React.useRef(null); useOnClickOutside(ref, close); @@ -40,7 +41,7 @@ export function Menu({ close }: { close: () => void }) {