added router

This commit is contained in:
snoop 2017-07-21 16:46:43 +09:00
parent dd488c8919
commit b7f9428994

View File

@ -6,6 +6,8 @@ import { Footer } from './Footer';
import LeftMenu from './LeftMenu';
import ProbeList from '../monitoring/probe/List';
import SensorList from '../monitoring/sensor/List';
import SensorSetup from '../monitoring/sensor/Setup';
export interface Props extends RouteComponentProps<any> {
}
@ -36,6 +38,8 @@ export class AppLayout extends React.Component<Props, State> {
<Header />
<Route path={`${this.props.match.url}/probe`} component={ProbeList} />
<Route path={`${this.props.match.url}/sensor_list`} component={SensorList} />
<Route path={`${this.props.match.url}/sensor_setup`} component={SensorSetup} />
<Footer />
</Segment>