blob: 037e6ea30441910fdbe1042cf1a08bce7aa99b50 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
import React, { Component } from 'react';
import { Segment, Tab } from 'semantic-ui-react';
import './System.css';
import Info from './Info';
import Logs from './Logs';
import OptionsView from './Options/View';
import OptionsEdit from './Options/Edit';
class System extends Component {
componentDidMount = () => {
}
componentWillUnmount = () => {
}
render = () => {
return (
<div className='system'>
<Segment raised>
<Tab panes={[
{ menuItem: 'Info', render: () => <Tab.Pane><Info state={this.props.state}/></Tab.Pane> },
{ menuItem: 'Options', render: () => <Tab.Pane><OptionsView options={this.props.options}/></Tab.Pane> },
{ menuItem: 'Edit', render: () => <Tab.Pane><OptionsEdit/></Tab.Pane> },
{ menuItem: 'Logs', render: () => <Tab.Pane><Logs/></Tab.Pane> },
]}/>
</Segment>
</div>
);
}
}
export default System;
|