quick dial support working

This commit is contained in:
talksik
2022-06-11 13:53:46 -05:00
parent 643b547bd0
commit 62a0e6af5b
2 changed files with 9 additions and 6 deletions
@@ -26,6 +26,7 @@ import { NirvanaRules } from '../util/rules';
import { SUPPORT_DISPLAY_NAME } from '../util/support'; import { SUPPORT_DISPLAY_NAME } from '../util/support';
import useAuth from '../providers/AuthProvider'; import useAuth from '../providers/AuthProvider';
import useConversations from '../providers/ConversationProvider'; import useConversations from '../providers/ConversationProvider';
import useSearch from '../providers/SearchProvider';
import useTerminal from './Terminal'; import useTerminal from './Terminal';
// sort conversations based on the different data sources: type, conversations, audio clips, etc. // sort conversations based on the different data sources: type, conversations, audio clips, etc.
@@ -36,7 +37,7 @@ import useTerminal from './Terminal';
* @returns * @returns
*/ */
export function ConversationList() { export function ConversationList() {
// const { handleOmniSearch } = useTerminal(); const { omniSearch } = useSearch();
const { conversationMap } = useConversations(); const { conversationMap } = useConversations();
@@ -44,9 +45,9 @@ export function ConversationList() {
console.warn('RENDER COUNT | CONVERSATION LIST | ', rendersCount); console.warn('RENDER COUNT | CONVERSATION LIST | ', rendersCount);
// don't actually dial, just show nirvana support there // don't actually dial, just show nirvana support there
// const handleQuickDialSupport = useCallback(() => { const handleQuickDialSupport = useCallback(() => {
// handleOmniSearch(SUPPORT_DISPLAY_NAME); omniSearch(SUPPORT_DISPLAY_NAME);
// }, [handleOmniSearch]); }, [omniSearch]);
if (Object.keys(conversationMap).length === 0) { if (Object.keys(conversationMap).length === 0) {
return ( return (
@@ -57,7 +58,9 @@ export function ConversationList() {
<Divider /> <Divider />
<Button variant={'text'}>Click here to say hi to our team!</Button> <Button variant={'text'} onClick={handleQuickDialSupport}>
Click here to say hi to our team!
</Button>
</Stack> </Stack>
); );
} }
+1 -1
View File
@@ -1,4 +1,4 @@
/** /**
* The string that should be used to search for the support account, regardless of the environment * The string that should be used to search for the support account, regardless of the environment
*/ */
export const SUPPORT_DISPLAY_NAME = 'Nirvana | Team'; export const SUPPORT_DISPLAY_NAME = 'usenirvana@gmail.com';