fix: добавлена переадресация после "самоисключения" из доски, исправлен текст и расположение некоторых кнопок
This commit is contained in:
@@ -132,7 +132,7 @@ export const useBoardLogic = (id, setError, setInfo, setCategories, setLoading,
|
||||
} finally {
|
||||
setLoading(false);
|
||||
}
|
||||
}, [setLoading, setError]);
|
||||
}, [setLoading, setError, navigate]);
|
||||
|
||||
const deleteCategory = useCallback(async (categoryId, modalDelCateg, modalEditCateg) => {
|
||||
setLoading(true);
|
||||
@@ -203,6 +203,7 @@ export const useBoardLogic = (id, setError, setInfo, setCategories, setLoading,
|
||||
await quitMemberAPI( boardId );
|
||||
await loadBoardData();
|
||||
modalQuitMember();
|
||||
navigate('/kanban-boards-list');
|
||||
} catch {
|
||||
setError('Ошибка');
|
||||
} finally{
|
||||
@@ -222,7 +223,7 @@ export const useBoardLogic = (id, setError, setInfo, setCategories, setLoading,
|
||||
} finally {
|
||||
setLoading(false);
|
||||
}
|
||||
}, [loadBoardData, setLoading, setError, navigate]);
|
||||
}, [loadBoardData, setLoading, setError]);
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user