mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: update activity publish state in assignment page
This commit is contained in:
parent
d0c2adf580
commit
6cb738a8a2
3 changed files with 6 additions and 9 deletions
|
|
@ -48,10 +48,8 @@ function Activity(props: any) {
|
|||
) {
|
||||
setSelectedActivity(undefined)
|
||||
let modifiedActivityCopy = {
|
||||
...props.activity,
|
||||
name: modifiedActivity.activityName,
|
||||
description: '',
|
||||
type: props.activity.type,
|
||||
content: props.activity.content,
|
||||
}
|
||||
|
||||
await updateActivity(modifiedActivityCopy, activityId, session.data?.tokens?.access_token)
|
||||
|
|
@ -155,8 +153,7 @@ function Activity(props: any) {
|
|||
<Link
|
||||
href={
|
||||
getUriWithOrg(props.orgslug, '') +
|
||||
`/course/${
|
||||
props.courseid
|
||||
`/course/${props.courseid
|
||||
}/activity/${props.activity.uuid.replace(
|
||||
'activity_',
|
||||
''
|
||||
|
|
@ -172,8 +169,7 @@ function Activity(props: any) {
|
|||
<Link
|
||||
href={
|
||||
getUriWithOrg(props.orgslug, '') +
|
||||
`/course/${
|
||||
props.courseid
|
||||
`/course/${props.courseid
|
||||
}/activity/${props.activity.uuid.replace('activity_', '')}`
|
||||
}
|
||||
className=" hover:cursor-pointer p-1 px-3 bg-gray-200 rounded-md"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue