This repository was archived by the owner on Jun 4, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +18
-259
lines changed Expand file tree Collapse file tree 3 files changed +18
-259
lines changed Original file line number Diff line number Diff line change 1
1
import { connect } from 'react-redux' ;
2
2
import React from 'react' ;
3
- import Authentication from './Authentication.react ' ;
3
+ import PropTypes from 'prop-types ' ;
4
4
import APIController from './APIController.react' ;
5
5
import DocumentTitle from './components/core/DocumentTitle.react' ;
6
6
import Loading from './components/core/Loading.react' ;
7
7
import Toolbar from './components/core/Toolbar.react' ;
8
8
import Reloader from './components/core/Reloader.react' ;
9
+ import { readConfig } from './actions' ;
9
10
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 (
13
20
< div >
14
21
< Toolbar />
15
22
< APIController />
16
23
< DocumentTitle />
17
24
< Loading />
18
25
< Reloader />
19
26
</ div >
20
- </ Authentication >
21
- ) ;
27
+ ) ;
28
+ }
22
29
}
23
30
31
+ UnconnectedAppContainer . propTypes = {
32
+ dispatch : PropTypes . func ,
33
+ } ;
34
+
24
35
const AppContainer = connect (
25
36
state => ( {
26
37
history : state . history ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ class Reloader extends React.Component {
51
51
) {
52
52
// Look if it was a css file.
53
53
let was_css = false ;
54
+ // eslint-disable-next-line prefer-const
54
55
for ( let a of reloadRequest . content . files ) {
55
56
if ( a . is_css ) {
56
57
was_css = true ;
You can’t perform that action at this time.
0 commit comments