diff options
author | sebdet <sebastien.determe@intl.att.com> | 2019-07-10 12:32:36 +0200 |
---|---|---|
committer | sebdet <sebastien.determe@intl.att.com> | 2019-07-12 00:25:30 +0200 |
commit | 4946e5b7d80fa1a7baa1c6042100fa1dee24ee31 (patch) | |
tree | ad8df0658a57188e45130b864f58bb6a206c74d5 /ui-react/src/index.js | |
parent | 7c7323d8ec54e65ac7a9a5e8c7cd8bdc755ea70a (diff) |
Introduce modal
Test Modal for Operational policy and use react-router to show it
Issue-ID: CLAMP-415
Change-Id: Ie0df5f1085925224076062c7d331dc2f4c72d032
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Diffstat (limited to 'ui-react/src/index.js')
-rw-r--r-- | ui-react/src/index.js | 31 |
1 files changed, 11 insertions, 20 deletions
diff --git a/ui-react/src/index.js b/ui-react/src/index.js index 8236eb15..1b2f2f59 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') +) |