Skip to content

Commit

Permalink
[+] the oidc app view is now interactive
Browse files Browse the repository at this point in the history
  • Loading branch information
Eriikah committed May 2, 2024
1 parent fb2350d commit 0b3584c
Show file tree
Hide file tree
Showing 5 changed files with 853 additions and 169 deletions.
10 changes: 5 additions & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Configuration } from "./pages/Configuration";
function App() {
useTranslation();
const location = useAppSelector((state) => state.router.location);
const test = location?.hash.replace("#", "").split("/");
const infos = location?.hash.replace("#", "").split("/");

return (
<Suspense fallback="loading">
Expand All @@ -23,11 +23,11 @@ function App() {
element={
<Configuration
location={{
type: test ? test[0] : "",
info: test
type: infos ? infos[0] : "",
info: infos
? {
name: test.length === 3 ? test[2] : test[1],
type: test.length === 3 ? test[1] : "",
name: infos.length === 3 ? infos[2] : infos[1],
type: infos.length === 3 ? infos[1] : "",
}
: { name: "", type: "" },
}}
Expand Down
2 changes: 0 additions & 2 deletions src/app/store.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { combineReducers, configureStore } from "@reduxjs/toolkit";
import configReducer from "../features/config/configSlice";
import creationAssistantReducer from "../features/creationAssistantSlice";
import { createReduxHistoryContext } from "redux-first-history";
import { createBrowserHistory } from "history";

Expand All @@ -9,7 +8,6 @@ const { createReduxHistory, routerMiddleware, routerReducer } =

const rootReducer = combineReducers({
config: configReducer,
creationAssistant: creationAssistantReducer,
router: routerReducer,
});

Expand Down
Loading

0 comments on commit 0b3584c

Please sign in to comment.