diff --git a/src/main.tsx b/src/main.tsx index 202d747..135d197 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -15,8 +15,8 @@ store.subscribe( saveState({ auth: store.getState().auth, metadata: store.getState().metadata, - relays: store.getState().relays, - userRobotImage: store.getState().userRobotImage + userRobotImage: store.getState().userRobotImage, + relays: store.getState().relays }) }, 1000) ) diff --git a/src/routes/index.tsx b/src/routes/index.tsx index de51e1a..50b3798 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -11,9 +11,9 @@ import { VerifyPage } from '../pages/verify' export const appPrivateRoutes = { homePage: '/', create: '/create', + sign: '/sign', verify: '/verify', - relays: '/relays', - sign: '/sign' + relays: '/relays' } export const appPublicRoutes = { @@ -63,5 +63,9 @@ export const privateRoutes = [ { path: appPrivateRoutes.verify, element: + }, + { + path: appPrivateRoutes.relays, + element: } ] diff --git a/src/store/actionTypes.ts b/src/store/actionTypes.ts index 65b037b..8899ecf 100644 --- a/src/store/actionTypes.ts +++ b/src/store/actionTypes.ts @@ -11,3 +11,5 @@ export const SET_METADATA_EVENT = 'SET_METADATA_EVENT' export const SET_RELAY_MAP = 'SET_RELAY_MAP' export const SET_USER_ROBOT_IMAGE = 'SET_USER_ROBOT_IMAGE' + +export const SET_RELAY_MAP = 'SET_RELAY_MAP' diff --git a/src/store/rootReducer.ts b/src/store/rootReducer.ts index 7ad7770..96f43bc 100644 --- a/src/store/rootReducer.ts +++ b/src/store/rootReducer.ts @@ -3,9 +3,9 @@ import { combineReducers } from 'redux' import authReducer from './auth/reducer' import { AuthState } from './auth/types' import metadataReducer from './metadata/reducer' +import userRobotImageReducer from './userRobotImage/reducer' import { RelaysState } from './relays/types' import relaysReducer from './relays/reducer' -import userRobotImageReducer from './userRobotImage/reducer' export interface State { auth: AuthState