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, Typography,
Input, Input,
CircularProgress, CircularProgress,
IconButton,
Box,
Tooltip,
} from '@mui/material'; } from '@mui/material';
import { blueGrey } from '@mui/material/colors'; 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 NirvanaAvatar from './NirvanaAvatar';
import { useDebounce, useKey } from 'react-use'; import { useDebounce, useKey } from 'react-use';
import { useSnackbar } from 'notistack'; import { useSnackbar } from 'notistack';
@@ -68,6 +71,7 @@ const Conversations = () => {
return ( return (
<> <>
<Stack direction={'row'} alignItems="center" justifyContent={'flex-start'} spacing={1}>
<Stack <Stack
direction={'row'} direction={'row'}
sx={{ sx={{
@@ -78,6 +82,7 @@ const Conversations = () => {
borderRadius: 1, borderRadius: 1,
px: 1, px: 1,
py: 0.5, py: 0.5,
flex: 1,
}} }}
alignItems={'center'} alignItems={'center'}
spacing={1} spacing={1}
@@ -96,6 +101,13 @@ const Conversations = () => {
<KeyboardShortcutLabel label="Shift" /> <KeyboardShortcutLabel label="Shift" />
</Stack> </Stack>
<Tooltip title={'Group conversation'}>
<IconButton color="secondary" size={'small'}>
<FiUsers />
</IconButton>
</Tooltip>
</Stack>
{searchVal ? <ListPeople people={searchUsersResults} /> : <ListConversations />} {searchVal ? <ListPeople people={searchUsersResults} /> : <ListConversations />}
</> </>
); );
@@ -114,8 +126,8 @@ function ListPeople({ people }: { people: User[] }) {
} }
> >
{people.length === 0 && ( {people.length === 0 && (
<Typography variant="caption"> <Typography align="center" variant="caption">
Sorry please try someone else or invite them to nirvana. {`Can't find someone? Invite them!`}
</Typography> </Typography>
)} )}
@@ -140,7 +152,11 @@ function ListConversations() {
const { conversations } = useTerminal(); const { conversations } = useTerminal();
if (conversations.length === 0) { 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 ( return (