|
|
@ -1,9 +1,7 @@
|
|
|
|
import * as React from 'react';
|
|
|
|
import * as React from 'react';
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { withRouter } from 'react-router';
|
|
|
|
import { withRouter } from 'react-router';
|
|
|
|
import { List, ListItem } from 'material-ui/List';
|
|
|
|
import { List, ListItem, ListSubheader, ListDivider } from './List';
|
|
|
|
import Subheader from 'material-ui/Subheader';
|
|
|
|
|
|
|
|
import Divider from 'material-ui/Divider';
|
|
|
|
|
|
|
|
import ActionCode from 'material-ui/svg-icons/action/code';
|
|
|
|
import ActionCode from 'material-ui/svg-icons/action/code';
|
|
|
|
import ActionHome from 'material-ui/svg-icons/action/home';
|
|
|
|
import ActionHome from 'material-ui/svg-icons/action/home';
|
|
|
|
import ActionBugReport from 'material-ui/svg-icons/action/bug-report';
|
|
|
|
import ActionBugReport from 'material-ui/svg-icons/action/bug-report';
|
|
|
@ -52,8 +50,8 @@ class SideMenu extends React.PureComponent {
|
|
|
|
if (this.props.etesync) {
|
|
|
|
if (this.props.etesync) {
|
|
|
|
const journals = (this.props.journals && this.props.journals.value) && (
|
|
|
|
const journals = (this.props.journals && this.props.journals.value) && (
|
|
|
|
<React.Fragment>
|
|
|
|
<React.Fragment>
|
|
|
|
<Divider />
|
|
|
|
<ListDivider />
|
|
|
|
<Subheader>Journals</Subheader>
|
|
|
|
<ListSubheader>Journals</ListSubheader>
|
|
|
|
<SideMenuJournals
|
|
|
|
<SideMenuJournals
|
|
|
|
etesync={this.props.etesync}
|
|
|
|
etesync={this.props.etesync}
|
|
|
|
journals={this.props.journals.value}
|
|
|
|
journals={this.props.journals.value}
|
|
|
@ -91,8 +89,8 @@ class SideMenu extends React.PureComponent {
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
{loggedInItems}
|
|
|
|
{loggedInItems}
|
|
|
|
<Divider />
|
|
|
|
<ListDivider />
|
|
|
|
<Subheader>External Links</Subheader>
|
|
|
|
<ListSubheader>External Links</ListSubheader>
|
|
|
|
<ListItem primaryText="Website" leftIcon={<ActionHome />} href={C.homePage} />
|
|
|
|
<ListItem primaryText="Website" leftIcon={<ActionHome />} href={C.homePage} />
|
|
|
|
<ListItem primaryText="FAQ" leftIcon={<ActionQuestionAnswer />} href={C.faq} />
|
|
|
|
<ListItem primaryText="FAQ" leftIcon={<ActionQuestionAnswer />} href={C.faq} />
|
|
|
|
<ListItem primaryText="Source Code" leftIcon={<ActionCode />} href={C.sourceCode} />
|
|
|
|
<ListItem primaryText="Source Code" leftIcon={<ActionCode />} href={C.sourceCode} />
|
|
|
|