1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-07 22:50:05 +00:00

fix(web): seperate container for auth code

This commit is contained in:
Saad Jutt
2022-05-11 21:01:59 +05:00
parent b40de8fa6a
commit 5888f04e08
3 changed files with 68 additions and 58 deletions

View File

@@ -10,6 +10,7 @@ import Drive from './containers/Drive'
import Studio from './containers/Studio'
import { AppContext } from './context/appContext'
import AuthCode from './containers/AuthCode'
function App() {
const appContext = useContext(AppContext)
@@ -20,9 +21,6 @@ function App() {
<HashRouter>
<Header />
<Switch>
<Route exact path="/SASjsLogon">
<Login getCodeOnly />
</Route>
<Route path="/">
<Login />
</Route>
@@ -47,7 +45,7 @@ function App() {
<Studio />
</Route>
<Route exact path="/SASjsLogon">
<Login getCodeOnly />
<AuthCode />
</Route>
</Switch>
</HashRouter>