templayout

This commit is contained in:
insanity 2017-07-21 16:58:25 +09:00
parent 547fc2a84b
commit c54dbd7d33

View File

@ -33,20 +33,21 @@ export class AppLayout extends React.Component<Props, State> {
public render(): JSX.Element { public render(): JSX.Element {
return ( return (
<Container fluid> <Switch>
<LeftMenu /> <Container fluid>
<Segment vertical style={{ margin: '0 0 0 210px', padding: '0' }}> <LeftMenu />
<Header /> <Segment vertical style={{ margin: '0 0 0 210px', padding: '0' }}>
<Header />
<Route exact path={`${this.props.match.url}/probe`} component={ProbeList} /> <Route exact path={`${this.props.match.url}/probe`} component={ProbeList} />
<Route exact path={`${this.props.match.url}/probe/:id`} component={ProbeDetail} /> <Route exact path={`${this.props.match.url}/probe/:id`} component={ProbeDetail} />
<Route path={`${this.props.match.url}/probe`} component={ProbeList} /> <Route exact path={`${this.props.match.url}/sensor_list`} component={SensorList} />
<Route path={`${this.props.match.url}/sensor_list`} component={SensorList} /> <Route exact path={`${this.props.match.url}/sensor_setup`} component={SensorSetup} />
<Route path={`${this.props.match.url}/sensor_setup`} component={SensorSetup} />
<Footer /> <Footer />
</Segment> </Segment>
</Container > </Container >
</Switch>
); );
} }
} }