|
|
@ -1,7 +1,6 @@
|
|
|
|
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 { NavLink } from 'react-router-dom';
|
|
|
|
|
|
|
|
import { List, ListItem } from 'material-ui/List';
|
|
|
|
import { List, ListItem } from 'material-ui/List';
|
|
|
|
import Subheader from 'material-ui/Subheader';
|
|
|
|
import Subheader from 'material-ui/Subheader';
|
|
|
|
import Divider from 'material-ui/Divider';
|
|
|
|
import Divider from 'material-ui/Divider';
|
|
|
@ -28,6 +27,7 @@ interface PropsType {
|
|
|
|
|
|
|
|
|
|
|
|
interface PropsTypeInner extends PropsType {
|
|
|
|
interface PropsTypeInner extends PropsType {
|
|
|
|
journals: JournalsType;
|
|
|
|
journals: JournalsType;
|
|
|
|
|
|
|
|
history: any;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class SideMenu extends React.Component {
|
|
|
|
class SideMenu extends React.Component {
|
|
|
@ -57,7 +57,10 @@ class SideMenu extends React.Component {
|
|
|
|
<SideMenuJournals
|
|
|
|
<SideMenuJournals
|
|
|
|
etesync={this.props.etesync}
|
|
|
|
etesync={this.props.etesync}
|
|
|
|
journals={this.props.journals.value}
|
|
|
|
journals={this.props.journals.value}
|
|
|
|
onItemClick={this.props.onCloseDrawerRequest}
|
|
|
|
onItemClick={(journalUid: string) => {
|
|
|
|
|
|
|
|
this.props.onCloseDrawerRequest();
|
|
|
|
|
|
|
|
this.props.history.push(routeResolver.getRoute('journals._id', { journalUid: journalUid }));
|
|
|
|
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</React.Fragment>
|
|
|
|
</React.Fragment>
|
|
|
|
);
|
|
|
|
);
|
|
|
@ -79,12 +82,14 @@ class SideMenu extends React.Component {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<List>
|
|
|
|
<List>
|
|
|
|
<NavLink
|
|
|
|
<ListItem
|
|
|
|
to={routeResolver.getRoute('home')}
|
|
|
|
primaryText="Main"
|
|
|
|
exact={true}
|
|
|
|
leftIcon={<ActionHome />}
|
|
|
|
>
|
|
|
|
onClick={() => {
|
|
|
|
<ListItem primaryText="Main" leftIcon={<ActionHome />} onClick={this.props.onCloseDrawerRequest} />
|
|
|
|
this.props.onCloseDrawerRequest();
|
|
|
|
</NavLink>
|
|
|
|
this.props.history.push(routeResolver.getRoute('home'));
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
|
|
|
/>
|
|
|
|
{loggedInItems}
|
|
|
|
{loggedInItems}
|
|
|
|
<Divider />
|
|
|
|
<Divider />
|
|
|
|
<Subheader>External Links</Subheader>
|
|
|
|
<Subheader>External Links</Subheader>
|
|
|
|