mirror of
https://github.com/Telecominfraproject/wlan-cloud-ui.git
synced 2025-10-31 18:57:59 +00:00
23 lines
585 B
JavaScript
23 lines
585 B
JavaScript
import React from 'react';
|
|
import { Helmet } from 'react-helmet';
|
|
import { Switch, Route } from 'react-router-dom';
|
|
|
|
import { Login, Dashboard } from 'cu-ui';
|
|
|
|
import ProtectedRouteWithLayout from './components/ProtectedRouteWithLayout';
|
|
|
|
const App = () => (
|
|
<>
|
|
<Helmet titleTemplate="%s - ConnectUs" defaultTitle="ConnectUs">
|
|
<meta name="description" content="ConnectUs" />
|
|
</Helmet>
|
|
|
|
<Switch>
|
|
<Route exact path="/login" component={Login} />
|
|
<ProtectedRouteWithLayout exact path="/" component={Dashboard} />
|
|
</Switch>
|
|
</>
|
|
);
|
|
|
|
export default App;
|