Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit ed66f16

Browse files
committed
Remove Authentication component.
1 parent f45d2c9 commit ed66f16

File tree

3 files changed

+18
-259
lines changed

3 files changed

+18
-259
lines changed

src/AppContainer.react.js

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,37 @@
11
import {connect} from 'react-redux';
22
import React from 'react';
3-
import Authentication from './Authentication.react';
3+
import PropTypes from 'prop-types';
44
import APIController from './APIController.react';
55
import DocumentTitle from './components/core/DocumentTitle.react';
66
import Loading from './components/core/Loading.react';
77
import Toolbar from './components/core/Toolbar.react';
88
import Reloader from './components/core/Reloader.react';
9+
import {readConfig} from './actions';
910

10-
function UnconnectedAppContainer() {
11-
return (
12-
<Authentication>
11+
class UnconnectedAppContainer extends React.Component {
12+
13+
componentWillMount() {
14+
const {dispatch} = this.props;
15+
dispatch(readConfig())
16+
}
17+
18+
render() {
19+
return (
1320
<div>
1421
<Toolbar />
1522
<APIController />
1623
<DocumentTitle />
1724
<Loading />
1825
<Reloader />
1926
</div>
20-
</Authentication>
21-
);
27+
);
28+
}
2229
}
2330

31+
UnconnectedAppContainer.propTypes = {
32+
dispatch: PropTypes.func,
33+
};
34+
2435
const AppContainer = connect(
2536
state => ({
2637
history: state.history,

src/Authentication.react.js

Lines changed: 0 additions & 253 deletions
This file was deleted.

src/components/core/Reloader.react.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class Reloader extends React.Component {
5151
) {
5252
// Look if it was a css file.
5353
let was_css = false;
54+
// eslint-disable-next-line prefer-const
5455
for (let a of reloadRequest.content.files) {
5556
if (a.is_css) {
5657
was_css = true;

0 commit comments

Comments
 (0)