added router
This commit is contained in:
parent
dd488c8919
commit
b7f9428994
|
@ -6,6 +6,8 @@ import { Footer } from './Footer';
|
||||||
import LeftMenu from './LeftMenu';
|
import LeftMenu from './LeftMenu';
|
||||||
|
|
||||||
import ProbeList from '../monitoring/probe/List';
|
import ProbeList from '../monitoring/probe/List';
|
||||||
|
import SensorList from '../monitoring/sensor/List';
|
||||||
|
import SensorSetup from '../monitoring/sensor/Setup';
|
||||||
|
|
||||||
export interface Props extends RouteComponentProps<any> {
|
export interface Props extends RouteComponentProps<any> {
|
||||||
}
|
}
|
||||||
|
@ -36,6 +38,8 @@ export class AppLayout extends React.Component<Props, State> {
|
||||||
<Header />
|
<Header />
|
||||||
|
|
||||||
<Route path={`${this.props.match.url}/probe`} component={ProbeList} />
|
<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 />
|
<Footer />
|
||||||
</Segment>
|
</Segment>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user