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'; 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 'wristband': return default: return null; } } render(){ let {i18n} = this.props; return ( 主選單 {this.changePage('wristband')}}> 手環名稱設定 { this.changePage('locstatus'); }}> 位置資訊 {this.getRenderPage()} ) } } export default WristbandPage;