clean nice subtle group creation icon
This commit is contained in:
@@ -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,32 +71,41 @@ const Conversations = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Stack
|
<Stack direction={'row'} alignItems="center" justifyContent={'flex-start'} spacing={1}>
|
||||||
direction={'row'}
|
<Stack
|
||||||
sx={{
|
direction={'row'}
|
||||||
position: 'relative',
|
sx={{
|
||||||
display: 'flex',
|
position: 'relative',
|
||||||
flexDirection: 'row',
|
display: 'flex',
|
||||||
bgcolor: blueGrey[100],
|
flexDirection: 'row',
|
||||||
borderRadius: 1,
|
bgcolor: blueGrey[100],
|
||||||
px: 1,
|
borderRadius: 1,
|
||||||
py: 0.5,
|
px: 1,
|
||||||
}}
|
py: 0.5,
|
||||||
alignItems={'center'}
|
flex: 1,
|
||||||
spacing={1}
|
}}
|
||||||
>
|
alignItems={'center'}
|
||||||
<FiSearch style={{ color: blueGrey[500] }} />
|
spacing={1}
|
||||||
|
>
|
||||||
|
<FiSearch style={{ color: blueGrey[500] }} />
|
||||||
|
|
||||||
<Input
|
<Input
|
||||||
onChange={handleChangeSearchInput}
|
onChange={handleChangeSearchInput}
|
||||||
value={searchVal}
|
value={searchVal}
|
||||||
placeholder={'Find or start a conversation'}
|
placeholder={'Find or start a conversation'}
|
||||||
inputRef={searchRef}
|
inputRef={searchRef}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{searching && <CircularProgress size={20} />}
|
{searching && <CircularProgress size={20} />}
|
||||||
|
|
||||||
<KeyboardShortcutLabel label="Shift" />
|
<KeyboardShortcutLabel label="Shift" />
|
||||||
|
</Stack>
|
||||||
|
|
||||||
|
<Tooltip title={'Group conversation'}>
|
||||||
|
<IconButton color="secondary" size={'small'}>
|
||||||
|
<FiUsers />
|
||||||
|
</IconButton>
|
||||||
|
</Tooltip>
|
||||||
</Stack>
|
</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 (
|
||||||
|
|||||||
Reference in New Issue
Block a user