This commit is contained in:
2021-01-12 14:45:26 +01:00
parent 28f18bdb57
commit 59ba65acfc
3 changed files with 74 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ import { PROJECT_PATH } from '../api';
import { MenuAppBar } from '../components';
import { AuthenticatedRoute } from '../authentication';
import FanCtlControl from './FanCtlControl';
import FanCtlSettings from './FanCtlSettings';
class FanCtlProject extends Component<RouteComponentProps> {
@@ -23,7 +24,7 @@ class FanCtlProject extends Component<RouteComponentProps> {
</Tabs>
<Switch>
<AuthenticatedRoute exact path={`/${PROJECT_PATH}/fanctl/control`} component={FanCtlControl} />
<AuthenticatedRoute exact path={`/${PROJECT_PATH}/fanctl/settings`} component={FanCtlControl} />
<AuthenticatedRoute exact path={`/${PROJECT_PATH}/fanctl/settings`} component={FanCtlSettings} />
<Redirect to={`/${PROJECT_PATH}/fanctl/control`} />
</Switch>
</MenuAppBar>