Update docs

Remove extra API request after document.update
Cleanup
This commit is contained in:
Tom Moor
2018-05-07 22:08:47 -07:00
parent 67f2b3cce4
commit ba0a7b7f4a
7 changed files with 56 additions and 20 deletions

View File

@@ -2,7 +2,7 @@
import * as React from 'react';
import { observable, action } from 'mobx';
import { observer } from 'mobx-react';
import { NavLink } from 'react-router-dom';
import { withRouter, NavLink } from 'react-router-dom';
import { CollapsedIcon } from 'outline-icons';
import { color, fontWeight } from 'shared/styles/constants';
import styled from 'styled-components';
@@ -59,6 +59,7 @@ type Props = {
active?: boolean,
};
@withRouter
@observer
class SidebarLink extends React.Component<Props> {
@observable expanded: boolean = false;