nice teaching people how to use subtlely with basic onboarind process
This commit is contained in:
@@ -2,20 +2,24 @@ import {
|
|||||||
Avatar,
|
Avatar,
|
||||||
AvatarGroup,
|
AvatarGroup,
|
||||||
Box,
|
Box,
|
||||||
|
Button,
|
||||||
CircularProgress,
|
CircularProgress,
|
||||||
|
Divider,
|
||||||
IconButton,
|
IconButton,
|
||||||
List,
|
List,
|
||||||
ListItem,
|
ListItem,
|
||||||
ListItemAvatar,
|
ListItemAvatar,
|
||||||
ListItemButton,
|
ListItemButton,
|
||||||
ListSubheader,
|
ListSubheader,
|
||||||
|
Stack,
|
||||||
Typography,
|
Typography,
|
||||||
} from '@mui/material';
|
} from '@mui/material';
|
||||||
import { FiActivity, FiCircle, FiSun } from 'react-icons/fi';
|
import { FiActivity, FiCircle, FiSun } from 'react-icons/fi';
|
||||||
|
import React, { useCallback } from 'react';
|
||||||
|
|
||||||
import Conversation from '@nirvana/core/src/models/conversation.model';
|
import Conversation from '@nirvana/core/src/models/conversation.model';
|
||||||
import ConversationLabel from '../subcomponents/ConversationLabel';
|
import ConversationLabel from '../subcomponents/ConversationLabel';
|
||||||
import React from 'react';
|
import { SUPPORT_DISPLAY_NAME } from '../util/support';
|
||||||
import useAuth from '../providers/AuthProvider';
|
import useAuth from '../providers/AuthProvider';
|
||||||
import { useRendersCount } from 'react-use';
|
import { useRendersCount } from 'react-use';
|
||||||
import useTerminal from './Terminal';
|
import useTerminal from './Terminal';
|
||||||
@@ -28,16 +32,28 @@ import useTerminal from './Terminal';
|
|||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
export function ConversationList({ lookingForSomeone = false }: { lookingForSomeone: boolean }) {
|
export function ConversationList({ lookingForSomeone = false }: { lookingForSomeone: boolean }) {
|
||||||
const { conversationMap } = useTerminal();
|
const { conversationMap, handleOmniSearch } = useTerminal();
|
||||||
|
|
||||||
const rendersCount = useRendersCount();
|
const rendersCount = useRendersCount();
|
||||||
console.warn('RENDER COUNT | CONVERSATION LIST | ', rendersCount);
|
console.warn('RENDER COUNT | CONVERSATION LIST | ', rendersCount);
|
||||||
|
|
||||||
|
const handleQuickDialSupport = useCallback(() => {
|
||||||
|
handleOmniSearch(SUPPORT_DISPLAY_NAME);
|
||||||
|
}, [handleOmniSearch]);
|
||||||
|
|
||||||
if (Object.keys(conversationMap).length === 0) {
|
if (Object.keys(conversationMap).length === 0) {
|
||||||
return (
|
return (
|
||||||
<Typography align="center" variant="caption">
|
<Stack direction={'column'} alignItems="center">
|
||||||
Look for someone by name or email to start a conversation!
|
<Typography align="center" variant="caption">
|
||||||
</Typography>
|
Look for someone by name or email to start a conversation!
|
||||||
|
</Typography>
|
||||||
|
|
||||||
|
<Divider />
|
||||||
|
|
||||||
|
<Button onClick={handleQuickDialSupport} variant={'text'}>
|
||||||
|
Click here to say hi to our team!
|
||||||
|
</Button>
|
||||||
|
</Stack>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { createTheme, experimental_sx as sx } from '@mui/material';
|
import { createTheme, experimental_sx as sx } from '@mui/material';
|
||||||
|
|
||||||
import { blueGrey } from '@mui/material/colors';
|
import { blueGrey } from '@mui/material/colors';
|
||||||
|
|
||||||
export const NirvanaTheme = createTheme({
|
export const NirvanaTheme = createTheme({
|
||||||
@@ -10,6 +11,9 @@ export const NirvanaTheme = createTheme({
|
|||||||
caption: {
|
caption: {
|
||||||
color: blueGrey[200],
|
color: blueGrey[200],
|
||||||
},
|
},
|
||||||
|
button: {
|
||||||
|
textTransform: 'none',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
palette: {
|
palette: {
|
||||||
primary: {
|
primary: {
|
||||||
|
|||||||
Reference in New Issue
Block a user