add v2 sidebar
This commit is contained in:
1 parent
fc9018e314
commit
3ae2f857d4
10 files changed
+279
-6
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import { createSlice } from "@reduxjs/toolkit";
|
||||
|
||||
const initialState = {
|
||||
isAuthenticated: false,
|
||||
};
|
||||
|
||||
const v2AuthSlice = createSlice({
|
||||
name: "v2Auth",
|
||||
initialState,
|
||||
reducers: {
|
||||
setIsAuthenticated: (state, action) => {
|
||||
const { authenticated } = action.payload;
|
||||
state.isAuthenticated = authenticated;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export default v2AuthSlice.reducer;
|
||||
export const { setIsAuthenticated } = v2AuthSlice.actions;
|
||||
Reference in new issue
Block a user