-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
381cc42
commit f42fc6c
Showing
8 changed files
with
40 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
// import { createSlice } from '@reduxjs/toolkit'; | ||
import { createSlice } from '@reduxjs/toolkit'; | ||
|
||
// const initialState = { | ||
// channels: [], | ||
// activeChannel: 1, | ||
// }; | ||
const initialState = { | ||
channels: [], | ||
activeChannel: 1, | ||
}; | ||
|
||
// const channelsSlice = createSlice({ | ||
// name: 'channels', | ||
// initialState, | ||
// reducers: { | ||
const channelsSlice = createSlice({ | ||
name: 'channels', | ||
initialState, | ||
reducers: { | ||
|
||
// } | ||
// }); | ||
} | ||
}); | ||
|
||
// export const { actions } = channelsSlice; | ||
// export default channelsSlice.reducer; | ||
export const { actions } = channelsSlice; | ||
export default channelsSlice.reducer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
// import { configureStore } from '@reduxjs/toolkit'; | ||
// import channelsReducer from './channelsSlice'; | ||
import { configureStore } from '@reduxjs/toolkit'; | ||
import channelsReducer from './channelsSlice'; | ||
|
||
// export default configureStore({ | ||
// reducer: { | ||
// channels: channelsReducer, | ||
// } | ||
// }); | ||
export default configureStore({ | ||
reducer: { | ||
channels: channelsReducer, | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
const apiPath = '/api/v1'; | ||
// const apiPath = '/api/v1'; | ||
|
||
export default { | ||
loginPath: '/login', | ||
loginPath: '/api/v1/login', | ||
mainPath: '/', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters