Skip to content

Commit

Permalink
Remove deprecated user functionality
Browse files Browse the repository at this point in the history
This has been used in a previous version of the apps but are not in use
anymore.
  • Loading branch information
spaceo committed Aug 17, 2024
1 parent c09dbf4 commit 2539ae4
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 281 deletions.
9 changes: 0 additions & 9 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,11 @@ import {
} from "../src/core/token";
import "../src/core/mount";
import Store from "../src/components/store";
import { store } from "../src/core/store";

import React from "react";
import { updateStatus } from "../src/core/user.slice";
import { withErrorBoundary } from "react-error-boundary";
import ErrorBoundaryAlert from "../src/components/error-boundary-alert/ErrorBoundaryAlert";

if (process.env.NODE_ENV === "test") {
store.dispatch(
updateStatus({
hasToken: true
})
);
}

const getSessionStorage = (type) => window.sessionStorage.getItem(type);
const userToken =
Expand Down
10 changes: 0 additions & 10 deletions src/apps/adgangsplatformen/auth.dev.jsx

This file was deleted.

113 changes: 0 additions & 113 deletions src/apps/adgangsplatformen/auth.jsx

This file was deleted.

38 changes: 0 additions & 38 deletions src/apps/adgangsplatformen/auth.test.js

This file was deleted.

2 changes: 0 additions & 2 deletions src/core/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
import { persistReducer, persistStore } from "redux-persist";
import storage from "redux-persist/lib/storage/session";
import textReducer from "./text.slice";
import userReducer from "./user.slice";
import modalReducer from "./modal.slice";
import urlReducer from "./url.slice";
import filterReducer from "./filter.slice";
Expand All @@ -37,7 +36,6 @@ export const store = configureStore({
reducer: persistReducer(
persistConfig,
combineReducers({
user: userReducer,
text: textReducer,
modal: modalReducer,
url: urlReducer,
Expand Down
65 changes: 0 additions & 65 deletions src/core/user.js

This file was deleted.

44 changes: 0 additions & 44 deletions src/core/user.slice.js

This file was deleted.

0 comments on commit 2539ae4

Please sign in to comment.