refactor(enhanced-kanban): update state management for editable section
- Changed the source of `editableSectionId` from `boardReducer` to `enhancedKanbanReducer` for improved state organization. - Added `setEditableSection` and `deleteSection` actions to manage the editable section state within the enhanced kanban slice.
This commit is contained in:
@@ -15,7 +15,7 @@ import { useSelector } from 'react-redux';
|
||||
import {
|
||||
deleteSection,
|
||||
IGroupBy,
|
||||
} from '@features/board/board-slice';
|
||||
} from '@features/enhanced-kanban/enhanced-kanban.slice';
|
||||
import { statusApiService } from '@/api/taskAttributes/status/status.api.service';
|
||||
import { phasesApiService } from '@/api/taskAttributes/phases/phases.api.service';
|
||||
import logger from '@/utils/errorLogger';
|
||||
@@ -31,7 +31,7 @@ const DeleteStatusDrawer: React.FC = () => {
|
||||
const { projectView } = useTabSearchParam();
|
||||
const [form] = Form.useForm();
|
||||
const { t } = useTranslation('task-list-filters');
|
||||
const { editableSectionId, groupBy } = useAppSelector(state => state.boardReducer);
|
||||
const { editableSectionId, groupBy } = useAppSelector(state => state.enhancedKanbanReducer);
|
||||
const isDelteStatusDrawerOpen = useAppSelector(
|
||||
state => state.deleteStatusReducer.isDeleteStatusDrawerOpen
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user