Skip to content

Commit 5cf4d1e

Browse files
committed
use oc-react-components
1 parent 4ea748f commit 5cf4d1e

File tree

4 files changed

+4
-46
lines changed

4 files changed

+4
-46
lines changed

js/App.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ import ReactScrolla from 'react-scrolla';
44

55
import {LogProvider} from './Providers/LogProvider.js';
66
import {LogTable} from './Components/LogTable.js';
7-
import {SideBar, Entry, Separator} from './Components/SideBar.js';
87
import {ToggleEntry} from './Components/ToggleEntry.js';
9-
import {App as OCApp} from './Components/App.js';
8+
import {App as AppContainer, SideBar} from 'oc-react-components';
109

1110
import {LogSearch} from './Search.js';
1211

@@ -55,7 +54,7 @@ export class App extends Component {
5554
});
5655

5756
return (
58-
<OCApp appId="logreader">
57+
<AppContainer appId="logreader">
5958
<SideBar>
6059
{filters}
6160
</SideBar>
@@ -67,7 +66,7 @@ export class App extends Component {
6766
isLoading={this.state.loading}>
6867
<LogTable entries={entries}/>
6968
</ReactScrolla>
70-
</OCApp>
69+
</AppContainer>
7170
);
7271
}
7372
}

js/Components/App.js

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

js/Components/SideBar.js

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"dependencies": {
2222
"babel-runtime": "^5.8.3",
2323
"envify": "^3.4.0",
24+
"oc-react-components": "^0.1.1",
2425
"react": "^0.13.3",
2526
"react-mixin": "^1.6.0",
2627
"react-scrolla": "^0.1.0",

0 commit comments

Comments
 (0)