upd: tambah project

Deskripsi:
- mengganti metode tambah anggota pada fitur tambah project

No Issues
This commit is contained in:
2025-08-07 10:47:04 +08:00
parent da89673271
commit 81aedb525f
4 changed files with 186 additions and 9 deletions

14
lib/groupChoose.ts Normal file
View File

@@ -0,0 +1,14 @@
import { createSlice } from '@reduxjs/toolkit';
const groupChoose = createSlice({
name: 'groupChoose',
initialState: '',
reducers: {
setGroupChoose: (state, action) => {
return action.payload;
},
},
});
export const { setGroupChoose } = groupChoose.actions;
export default groupChoose.reducer;

View File

@@ -19,6 +19,7 @@ import projectUpdate from './projectUpdate';
import taskCreate from './taskCreate';
import taskUpdate from './taskUpdate';
import userReducer from './userSlice';
import groupChoose from './groupChoose';
const store = configureStore({
reducer: {
@@ -42,6 +43,7 @@ const store = configureStore({
dokumenUpdate: dokumenUpdate,
notificationUpdate: notificationUpdate,
calendarCreate: calendarCreate,
groupChoose: groupChoose,
}
});