mirror of
https://github.com/Telecominfraproject/wlan-cloud-ui.git
synced 2025-11-02 03:37:59 +00:00
added Client Devices base
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import React from 'react';
|
||||
import { Helmet } from 'react-helmet';
|
||||
import { Switch } from 'react-router-dom';
|
||||
import { Switch, Redirect } from 'react-router-dom';
|
||||
|
||||
import { ThemeProvider, Dashboard } from '@tip-wlan/wlan-cloud-ui-library';
|
||||
import { ThemeProvider, Dashboard, ClientDevices } from '@tip-wlan/wlan-cloud-ui-library';
|
||||
|
||||
import logo from 'images/logo-light.png';
|
||||
import logoMobile from 'images/logoxmobile.jpg';
|
||||
@@ -12,6 +12,14 @@ import Login from 'containers/Login';
|
||||
import UnauthenticatedRoute from './components/UnauthenticatedRoute';
|
||||
import ProtectedRouteWithLayout from './components/ProtectedRouteWithLayout';
|
||||
|
||||
const RedirectToDashboard = () => (
|
||||
<Redirect
|
||||
to={{
|
||||
pathname: '/dashboard',
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
||||
const App = () => (
|
||||
<ThemeProvider company="ConnectUs" logo={logo} logoMobile={logoMobile}>
|
||||
<Helmet titleTemplate="%s - ConnectUs" defaultTitle="ConnectUs">
|
||||
@@ -20,7 +28,9 @@ const App = () => (
|
||||
|
||||
<Switch>
|
||||
<UnauthenticatedRoute exact path="/login" component={Login} />
|
||||
<ProtectedRouteWithLayout exact path="/" component={Dashboard} />
|
||||
<ProtectedRouteWithLayout exact path="/" component={RedirectToDashboard} />
|
||||
<ProtectedRouteWithLayout exact path="/dashboard" component={Dashboard} />
|
||||
<ProtectedRouteWithLayout exact path="/network/client-devices" component={ClientDevices} />
|
||||
</Switch>
|
||||
</ThemeProvider>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user