-
Notifications
You must be signed in to change notification settings - Fork 2
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
Rob Ellison
committed
Sep 11, 2023
1 parent
1e13914
commit 21fe7a6
Showing
9 changed files
with
239 additions
and
507 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import {createSlice} from '@reduxjs/toolkit'; | ||
const branchSlice = createSlice({ | ||
name: 'branch', | ||
initialState: { | ||
name: 'none' | ||
}, | ||
reducers: { | ||
setBranch: (state, action) => { | ||
state.name = action.payload | ||
} | ||
}}) | ||
|
||
export const {setBranch} = branchSlice.actions; | ||
export default branchSlice.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import {configureStore} from '@reduxjs/toolkit'; | ||
import branchReducer from './reducers/branchSlice'; | ||
export default configureStore({ | ||
reducer:{ | ||
branch: branchReducer | ||
} | ||
}) |
Oops, something went wrong.