From ef3b0c1dc72e9fc8f057bff66ffac867071e349a Mon Sep 17 00:00:00 2001 From: dmkirshon Date: Tue, 12 Dec 2023 12:37:54 +0200 Subject: [PATCH] feat: Link NEWM sidebar icon to newm.io --- apps/studio/src/common/constants.ts | 4 ++-- apps/studio/src/pages/home/SideBar.tsx | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/apps/studio/src/common/constants.ts b/apps/studio/src/common/constants.ts index 3e3c692fc..18b0bcdfe 100644 --- a/apps/studio/src/common/constants.ts +++ b/apps/studio/src/common/constants.ts @@ -4,6 +4,7 @@ export const NEWM_SUPPORT_EMAIL = "support@newm.io"; export const NEWM_CLICKUP_FORM_URL = "https://forms.clickup.com/24371401/f/q7r69-16220/410BQW62PPVQ51RI2B"; +export const NEWM_IO_URL = "https://newm.io/"; export const NEWM_STUDIO_DISCORD_URL = "https://discord.com/channels/931903540056694856/1153293933468713041"; export const NEWM_STUDIO_FAQ_URL = "https://newm.io/artist-faq"; @@ -11,7 +12,6 @@ export const NEWM_STUDIO_TELEGRAM_URL = "https://t.me/NEWMartists"; export const NEWM_STUDIO_TERMS_OF_SERVICE_URL = "https://newm.io/tos/"; export const NEWM_STUDIO_OUTLETS_URL = "https://newm.io/faq/#outlets"; export const NEWM_PRIVACY_POLICY_URL = "https://newm.io/privacy-policy/"; - /** * Character count constants for form validation */ @@ -33,5 +33,5 @@ export const NONE_OPTION = "-"; */ export const SKIP_FETCH_INVITE_PATH_LIST = [ "/idenfy-success-session", - "/idenfy-fail-session" + "/idenfy-fail-session", ]; diff --git a/apps/studio/src/pages/home/SideBar.tsx b/apps/studio/src/pages/home/SideBar.tsx index 070eff1f2..df5b31471 100644 --- a/apps/studio/src/pages/home/SideBar.tsx +++ b/apps/studio/src/pages/home/SideBar.tsx @@ -1,5 +1,5 @@ import { FunctionComponent } from "react"; -import { Box, Drawer, IconButton, Stack, useTheme } from "@mui/material"; +import { Box, Drawer, IconButton, Link, Stack, useTheme } from "@mui/material"; import { Typography } from "@newm-web/elements"; import { SideBarHeader, @@ -21,6 +21,7 @@ import { } from "@mui/icons-material"; import { NEWM_CLICKUP_FORM_URL, + NEWM_IO_URL, NEWM_STUDIO_DISCORD_URL, NEWM_STUDIO_FAQ_URL, } from "../../common"; @@ -177,7 +178,9 @@ export const SideBar: FunctionComponent = ( px={2.5} width="100%" > - + + + );