From cea118c1d0d9d6a2f9c74870f3737645694a74aa Mon Sep 17 00:00:00 2001 From: talksik Date: Mon, 30 May 2022 10:48:30 -0500 Subject: [PATCH] cleanup --- packages/desktop/src/components/FooterControls.tsx | 3 ++- packages/desktop/src/util/support.ts | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 packages/desktop/src/util/support.ts diff --git a/packages/desktop/src/components/FooterControls.tsx b/packages/desktop/src/components/FooterControls.tsx index bf75356..ad8249c 100644 --- a/packages/desktop/src/components/FooterControls.tsx +++ b/packages/desktop/src/components/FooterControls.tsx @@ -18,6 +18,7 @@ import { FiHeadphones, FiHelpCircle, FiLogOut, FiSun } from 'react-icons/fi'; import React, { useCallback } from 'react'; import ConversationLabel from '../subcomponents/ConversationLabel'; +import { SUPPORT_DISPLAY_NAME } from '../util/support'; import { blueGrey } from '@mui/material/colors'; import useAuth from '../providers/AuthProvider'; import useTerminal from './Terminal'; @@ -36,7 +37,7 @@ export default function FooterControls() { }; const handleQuickDialSupport = useCallback(() => { - handleOmniSearch('Nirvana Support'); + handleOmniSearch(SUPPORT_DISPLAY_NAME); }, [handleOmniSearch]); return ( diff --git a/packages/desktop/src/util/support.ts b/packages/desktop/src/util/support.ts new file mode 100644 index 0000000..687a7b5 --- /dev/null +++ b/packages/desktop/src/util/support.ts @@ -0,0 +1,4 @@ +/** + * The string that should be used to search for the support account, regardless of the environment + */ +export const SUPPORT_DISPLAY_NAME = 'Nirvana Support';