Removed offline component
This commit is contained in:
@ -2,7 +2,6 @@ import React from 'react';
|
||||
import { browserHistory, Link } from 'react-router';
|
||||
import Helmet from 'react-helmet';
|
||||
import { observer, inject } from 'mobx-react';
|
||||
import { injectOffline } from 'components/Offline';
|
||||
import keydown from 'react-keydown';
|
||||
import _ from 'lodash';
|
||||
|
||||
@ -18,7 +17,6 @@ const cx = classNames.bind(styles);
|
||||
|
||||
@inject('user')
|
||||
@observer
|
||||
@injectOffline
|
||||
class Layout extends React.Component {
|
||||
static propTypes = {
|
||||
children: React.PropTypes.node,
|
||||
@ -28,7 +26,6 @@ class Layout extends React.Component {
|
||||
loading: React.PropTypes.bool,
|
||||
user: React.PropTypes.object.isRequired,
|
||||
search: React.PropTypes.bool,
|
||||
offline: React.PropTypes.bool,
|
||||
notifications: React.PropTypes.node,
|
||||
};
|
||||
|
||||
@ -61,11 +58,6 @@ class Layout extends React.Component {
|
||||
|
||||
{this.props.loading && <LoadingIndicator />}
|
||||
|
||||
{this.props.offline &&
|
||||
<Alert offline>
|
||||
It looks like you're offline. Reconnect to restore access to all of your documents 📚
|
||||
</Alert>}
|
||||
|
||||
{this.props.notifications}
|
||||
|
||||
<div className={cx(styles.header)}>
|
||||
|
Reference in New Issue
Block a user