aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui-react/src/index.js')
-rw-r--r--ui-react/src/index.js31
1 files changed, 11 insertions, 20 deletions
diff --git a/ui-react/src/index.js b/ui-react/src/index.js
index 8236eb15c..1b2f2f595 100644
--- a/ui-react/src/index.js
+++ b/ui-react/src/index.js
@@ -22,28 +22,19 @@
*/
import React from 'react';
import ReactDOM from 'react-dom';
-
-import { Route, Switch, BrowserRouter } from 'react-router-dom'
import OnapClamp from './OnapClamp';
-import NotFound from './components/app/NotFound';
-import LoginPage from './components/app/login/LoginPage';
-import LoginFailedPage from './components/app/login/LoginFailedPage';
-import BasicAuthLogin from './components/app/login/BasicAuthLogin';
-import LoginRoute from './components/route/LoginRoute';
+import { Route, BrowserRouter } from 'react-router-dom'
+import OperationalPolicyModal from './components/dialogs/OperationalPolicy/OperationalPolicyModal';
const routing = (
- <BrowserRouter>
- <div>
- <Switch>
- <LoginRoute exact path="/" component={OnapClamp} />
- <Route path="/basicAuthLogin" component={BasicAuthLogin} />
- <Route path="/login" component={LoginPage} />
- <Route path="/loginFailed" component={LoginFailedPage} />
- <Route component={NotFound} />
- </Switch>
- </div>
- </BrowserRouter>
-)
+ <BrowserRouter >
+ <OnapClamp />
+ <Route path="/operationalPolicyModal" render={() => <OperationalPolicyModal />} />
+ </BrowserRouter>
+);
-ReactDOM.render(routing, document.getElementById('root'))
+ReactDOM.render(
+ routing,
+ document.getElementById('root')
+)