router added

This commit is contained in:
insanity 2017-07-20 20:15:22 +09:00
parent 4fe77c58e8
commit 6c57c23a06
2 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,7 @@ import { Route, RouteProps, Switch } from 'react-router-dom';
import SignIn from '../views/member/SignIn';
import SensorList from '../views/monitoring/sensor/SensorList';
import ProbeList from '../views/monitoring/probe/List';
import { SignUp } from '@overflow/member/react/components/SignUp';
// import { SignIn } from '@overflow/member/react/components/SignIn';;
@ -44,6 +45,8 @@ const routes = (
<Route exact path='/test21' component={Sensors} />*/}
{/*<Route path='/sensorList' component={SensorList} />*/}
<Route exact path='/probe_list' component={ProbeList} />
</Switch>

View File

@ -36,8 +36,8 @@ export class LeftMenu extends React.Component<any, any> {
<Header inverted sub icon='bar graph' content='Monitoring' />
</Menu.Header>
<Menu.Menu>
<Menu.Item href='#/test14' style={{ 'margin-left': '30px' }}>Probe</Menu.Item>
<Menu.Item href='/' style={{ 'margin-left': '30px' }}>Sensors</Menu.Item>
<Menu.Item href='#/probe_list' style={{ 'margin-left': '30px' }}>Probe</Menu.Item>
<Menu.Item href='#/' style={{ 'margin-left': '30px' }}>Sensors</Menu.Item>
</Menu.Menu>
</Menu.Item>