wire up form

This commit is contained in:
Alex Holliday committed 2026-02-07 01:13:58 +00:00
1 parent 1808db5cd7
commit 4945b29334
3 files changed
+156 -34

No files matched your search

+4 -1
View File
@@ -203,6 +203,9 @@ const authSlice = createSlice({
state.authToken = action.payload.data.token;
state.user = action.payload.data.user;
},
setUser: (state, action) => {
state.user = action.payload;
},
},
extraReducers: (builder) => {
// Register thunk
@@ -256,4 +259,4 @@ const authSlice = createSlice({
});
export default authSlice.reducer;
export const { clearAuthState, setAuthState } = authSlice.actions;
export const { clearAuthState, setAuthState, setUser } = authSlice.actions;