clean nice subtle group creation icon

This commit is contained in:
talksik
2022-05-28 14:39:54 -05:00
parent 6ca4d18028
commit 40f7d763f5
@@ -14,9 +14,12 @@ import {
Typography,
Input,
CircularProgress,
IconButton,
Box,
Tooltip,
} from '@mui/material';
import { blueGrey } from '@mui/material/colors';
import { FiActivity, FiInbox, FiSearch } from 'react-icons/fi';
import { FiActivity, FiInbox, FiSearch, FiUsers } from 'react-icons/fi';
import NirvanaAvatar from './NirvanaAvatar';
import { useDebounce, useKey } from 'react-use';
import { useSnackbar } from 'notistack';
@@ -68,6 +71,7 @@ const Conversations = () => {
return (
<>
<Stack direction={'row'} alignItems="center" justifyContent={'flex-start'} spacing={1}>
<Stack
direction={'row'}
sx={{
@@ -78,6 +82,7 @@ const Conversations = () => {
borderRadius: 1,
px: 1,
py: 0.5,
flex: 1,
}}
alignItems={'center'}
spacing={1}
@@ -96,6 +101,13 @@ const Conversations = () => {
<KeyboardShortcutLabel label="Shift" />
</Stack>
<Tooltip title={'Group conversation'}>
<IconButton color="secondary" size={'small'}>
<FiUsers />
</IconButton>
</Tooltip>
</Stack>
{searchVal ? <ListPeople people={searchUsersResults} /> : <ListConversations />}
</>
);
@@ -114,8 +126,8 @@ function ListPeople({ people }: { people: User[] }) {
}
>
{people.length === 0 && (
<Typography variant="caption">
Sorry please try someone else or invite them to nirvana.
<Typography align="center" variant="caption">
{`Can't find someone? Invite them!`}
</Typography>
)}
@@ -140,7 +152,11 @@ function ListConversations() {
const { conversations } = useTerminal();
if (conversations.length === 0) {
return <Typography variant="caption">Find someone by email or name to get started!</Typography>;
return (
<Typography align="center" variant="caption">
Look for someone by name or email to start a conversation!
</Typography>
);
}
return (