listcontainer
This commit is contained in:
parent
946b9ee43d
commit
64c50077c2
@ -16,7 +16,7 @@ export class ProbeDetails extends React.Component<any, any> {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<Container>
|
<Container fluid>
|
||||||
<ProbeBasicInfo probe={this.props.probe} />
|
<ProbeBasicInfo probe={this.props.probe} />
|
||||||
<TargetTable />
|
<TargetTable />
|
||||||
</Container>
|
</Container>
|
||||||
|
@ -82,9 +82,8 @@ export class Probes extends React.Component<any, any> {
|
|||||||
if (this.state.isDetail) {
|
if (this.state.isDetail) {
|
||||||
return <ProbeDetails probe={this.state.selected} onBack={() => this.setState({ isDetail: false })} />;
|
return <ProbeDetails probe={this.state.selected} onBack={() => this.setState({ isDetail: false })} />;
|
||||||
}
|
}
|
||||||
let component =
|
let probeList =
|
||||||
<Container fluid>
|
<Container fluid>
|
||||||
<Header as='h3' dividing>Probe</Header>
|
|
||||||
<Table selectable striped>
|
<Table selectable striped>
|
||||||
<Table.Header>
|
<Table.Header>
|
||||||
<Table.Row>
|
<Table.Row>
|
||||||
@ -111,7 +110,7 @@ export class Probes extends React.Component<any, any> {
|
|||||||
</Container>;
|
</Container>;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ListContainer contents={component}/>
|
<ListContainer contents={probeList}/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,12 +14,10 @@ export class ListContainer extends React.Component<any, any> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const activeItem = this.state.activeItem;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.Column width={4} textAlign='center' color='grey'>
|
<Grid.Column width={4} textAlign='center' color='grey'>
|
||||||
Chart Area
|
CHART AREA
|
||||||
</Grid.Column>
|
</Grid.Column>
|
||||||
<Grid.Column stretched width={12} >
|
<Grid.Column stretched width={12} >
|
||||||
{this.showContents()}
|
{this.showContents()}
|
||||||
|
33
src/ts/containers/test/commons/SideBarContainer.tsx
Normal file
33
src/ts/containers/test/commons/SideBarContainer.tsx
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
import * as React from 'react';
|
||||||
|
import { Sidebar, Segment } from 'semantic-ui-react';
|
||||||
|
|
||||||
|
export class SideBarContainer extends React.Component<any, any> {
|
||||||
|
|
||||||
|
constructor(props: any, context: any) {
|
||||||
|
super(props, context);
|
||||||
|
this.state = {
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
showContents() {
|
||||||
|
return this.props.contents;
|
||||||
|
}
|
||||||
|
|
||||||
|
render() {
|
||||||
|
return (
|
||||||
|
<Sidebar.Pushable as={Segment}>
|
||||||
|
<Sidebar
|
||||||
|
animation='overlay'
|
||||||
|
width='thin'
|
||||||
|
direction='right'
|
||||||
|
visible={true}
|
||||||
|
icon='labeled'
|
||||||
|
vertical
|
||||||
|
inverted
|
||||||
|
>
|
||||||
|
test contents
|
||||||
|
</Sidebar>
|
||||||
|
</Sidebar.Pushable>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user