import React from 'react'; import {Grid, Container, Segment, Menu, List} from 'semantic-ui-react'; import LocStatus from '../../../containers/AdminPage/Wristband/LocStatus'; import WristbandInfo from '../../../containers/AdminPage/Wristband/WristbandInfo'; import Location from '../../../containers/AdminPage/Wristband/Location'; import LocStatusWloc from '../../../containers/AdminPage/Wristband/LocStatusWloc'; class WristbandPage extends React.Component{ state = { page: '' } changePage = (page) => { this.setState({ page }) } getRenderPage = () => { let {i18n} = this.props; switch(this.state.page) { case 'locstatus': return ; case 'locstatus_wloc': return ; case 'wristband': return ; case 'location': return default: return null; } } render(){ let {i18n} = this.props; return ( 主選單 {this.changePage('wristband')}}> 手環名稱設定 {this.changePage('location')}}> 定位點設定 { this.changePage('locstatus'); }}> 位置資訊 { this.changePage('locstatus_wloc'); }}> 位置資訊 - 地點分類 {this.getRenderPage()} ) } } export default WristbandPage;