mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: init assignment subpages and misc python and ts improvements
This commit is contained in:
parent
e9caa2ceb4
commit
dab80069d4
19 changed files with 109 additions and 49 deletions
|
|
@ -78,7 +78,6 @@ export function useAssignmentsTaskDispatch() {
|
|||
function assignmentstaskReducer(state: State, action: Action): State {
|
||||
switch (action.type) {
|
||||
case 'setSelectedAssignmentTaskUUID':
|
||||
console.log('st', action.payload)
|
||||
return { ...state, selectedAssignmentTaskUUID: action.payload };
|
||||
case 'setAssignmentTask':
|
||||
return { ...state, assignmentTask: action.payload };
|
||||
|
|
|
|||
|
|
@ -254,9 +254,6 @@ const ActivityElementOptions = ({ activity }: any) => {
|
|||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
console.log(activity)
|
||||
|
||||
fetchAssignmentUUID();
|
||||
}, [activity, course]);
|
||||
|
||||
|
|
|
|||
|
|
@ -55,8 +55,6 @@ function NewAssignment({ submitActivity, chapterId, course, closeModal }: any) {
|
|||
}
|
||||
|
||||
const activity_res = await createActivity(activity, chapterId, org?.id, session.data?.tokens?.access_token)
|
||||
console.log(course)
|
||||
console.log(activity_res)
|
||||
await createAssignment({
|
||||
title: activityName,
|
||||
description: activityDescription,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue