JournalsList: add icon to titles

master
Tal Leibman 5 years ago committed by Tom Hacohen
parent 8aa4af46f1
commit 6a5d959777

@ -8,6 +8,9 @@ import { Link } from 'react-router-dom';
import IconButton from '@material-ui/core/IconButton'; import IconButton from '@material-ui/core/IconButton';
import IconAdd from '@material-ui/icons/Add'; import IconAdd from '@material-ui/icons/Add';
import ContactsIcon from '@material-ui/icons/Contacts';
import CalendarTodayIcon from '@material-ui/icons/CalendarToday';
import FormatListBulletedIcon from '@material-ui/icons/FormatListBulleted';
import { List, ListItem } from '../widgets/List'; import { List, ListItem } from '../widgets/List';
@ -79,16 +82,19 @@ export default function JournalsList(props: PropsType) {
<List> <List>
<ListItem <ListItem
primaryText="Address Books" primaryText="Address Books"
rightIcon={<ContactsIcon />}
nestedItems={journalMap.ADDRESS_BOOK} nestedItems={journalMap.ADDRESS_BOOK}
/> />
<ListItem <ListItem
primaryText="Calendars" primaryText="Calendars"
rightIcon={<CalendarTodayIcon />}
nestedItems={journalMap.CALENDAR} nestedItems={journalMap.CALENDAR}
/> />
<ListItem <ListItem
primaryText="Tasks" primaryText="Tasks"
rightIcon={<FormatListBulletedIcon />}
nestedItems={journalMap.TASKS} nestedItems={journalMap.TASKS}
/> />
</List> </List>

Loading…
Cancel
Save