diff --git a/front/src/createReduxStore.js b/front/src/createReduxStore.js index 9fab40ec7..4ee358907 100644 --- a/front/src/createReduxStore.js +++ b/front/src/createReduxStore.js @@ -42,6 +42,7 @@ export const initialState = { processEndpoint: __PROCESS_ENDPOINT__, pandocExportEndpoint: __PANDOC_EXPORT_ENDPOINT__, humanIdRegisterEndpoint: __HUMANID_REGISTER_ENDPOINT__, + websocketEndpoint: toWebsocketEndpoint(__BACKEND_ENDPOINT__) }, articleStructure: [], articleVersions: [], @@ -88,7 +89,6 @@ export const initialState = { function createRootReducer (state) { return createReducer(state, { - APPLICATION_CONFIG: setApplicationConfig, PROFILE: setProfile, CLEAR_ZOTERO_TOKEN: clearZoteroToken, LOGIN: loginUser, @@ -260,15 +260,6 @@ function persistStateIntoLocalStorage ({ getState }) { } } -function setApplicationConfig (state, action) { - const applicationConfig = { - ...action.applicationConfig, - websocketEndpoint: toWebsocketEndpoint(action.applicationConfig.backendEndpoint) - } - - return { ...state, applicationConfig } -} - function setProfile (state, action) { const { user } = action if (!user) { diff --git a/front/src/index.jsx b/front/src/index.jsx index 5de514426..a3f2845b4 100644 --- a/front/src/index.jsx +++ b/front/src/index.jsx @@ -20,11 +20,6 @@ import Register from './components/Register' import PrivateRoute from './components/PrivateRoute' import NotFound from './components/404' import Error from './components/Error' -import Button from './components/Button' -import Field from './components/Field' -import { Check, Copy, Search } from 'react-feather' -import buttonStyles from './components/button.module.scss' -import Select from './components/Select' import Story from './stories/Story.jsx' // lazy loaded routes