Add applications icons in sidebar (#602)
This commit is contained in:
parent
97f180b650
commit
92916f0117
|
|
@ -1,14 +1,21 @@
|
||||||
import Divider from '@material-ui/core/Divider';
|
import Divider from '@material-ui/core/Divider';
|
||||||
import Drawer from '@material-ui/core/Drawer';
|
import Drawer from '@material-ui/core/Drawer';
|
||||||
import ListItem from '@material-ui/core/ListItem';
|
|
||||||
import ListItemText from '@material-ui/core/ListItemText';
|
|
||||||
import {StyleRules, Theme, WithStyles, withStyles} from '@material-ui/core/styles';
|
import {StyleRules, Theme, WithStyles, withStyles} from '@material-ui/core/styles';
|
||||||
import React, {Component} from 'react';
|
import React, {Component} from 'react';
|
||||||
import {Link} from 'react-router-dom';
|
import {Link} from 'react-router-dom';
|
||||||
import {observer} from 'mobx-react';
|
import {observer} from 'mobx-react';
|
||||||
import {inject, Stores} from '../inject';
|
import {inject, Stores} from '../inject';
|
||||||
import {mayAllowPermission, requestPermission} from '../snack/browserNotification';
|
import {mayAllowPermission, requestPermission} from '../snack/browserNotification';
|
||||||
import {Button, Hidden, IconButton, Typography} from '@material-ui/core';
|
import {
|
||||||
|
Button,
|
||||||
|
Hidden,
|
||||||
|
IconButton,
|
||||||
|
Typography,
|
||||||
|
ListItem,
|
||||||
|
ListItemText,
|
||||||
|
ListItemAvatar,
|
||||||
|
Avatar,
|
||||||
|
} from '@material-ui/core';
|
||||||
import {DrawerProps} from '@material-ui/core/Drawer/Drawer';
|
import {DrawerProps} from '@material-ui/core/Drawer/Drawer';
|
||||||
import CloseIcon from '@material-ui/icons/Close';
|
import CloseIcon from '@material-ui/icons/Close';
|
||||||
|
|
||||||
|
|
@ -59,6 +66,13 @@ class Navigation extends Component<
|
||||||
to={'/messages/' + app.id}
|
to={'/messages/' + app.id}
|
||||||
key={app.id}>
|
key={app.id}>
|
||||||
<ListItem button>
|
<ListItem button>
|
||||||
|
<ListItemAvatar style={{minWidth: 42}}>
|
||||||
|
<Avatar
|
||||||
|
style={{width: 32, height: 32}}
|
||||||
|
src={app.image}
|
||||||
|
variant="square"
|
||||||
|
/>
|
||||||
|
</ListItemAvatar>
|
||||||
<ListItemText primary={app.name} />
|
<ListItemText primary={app.name} />
|
||||||
</ListItem>
|
</ListItem>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue