mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: enhance activity navigation by adding NextActivityButton and restructuring layout
This commit is contained in:
parent
20bafafba0
commit
ab0de5e771
1 changed files with 23 additions and 13 deletions
|
|
@ -603,19 +603,29 @@ function ActivityClient(props: ActivityClientProps) {
|
||||||
|
|
||||||
{/* Activity Actions below the content box */}
|
{/* Activity Actions below the content box */}
|
||||||
{activity && activity.published == true && activity.content.paid_access != false && (
|
{activity && activity.published == true && activity.content.paid_access != false && (
|
||||||
<div className="flex justify-between items-center mt-4">
|
<div className="flex justify-between items-center mt-4 w-full">
|
||||||
<PreviousActivityButton
|
<div>
|
||||||
course={course}
|
<PreviousActivityButton
|
||||||
currentActivityId={activity.id}
|
course={course}
|
||||||
orgslug={orgslug}
|
currentActivityId={activity.id}
|
||||||
/>
|
orgslug={orgslug}
|
||||||
<ActivityActions
|
/>
|
||||||
activity={activity}
|
</div>
|
||||||
activityid={activityid}
|
<div className="flex items-center space-x-2">
|
||||||
course={course}
|
<ActivityActions
|
||||||
orgslug={orgslug}
|
activity={activity}
|
||||||
assignment={assignment}
|
activityid={activityid}
|
||||||
/>
|
course={course}
|
||||||
|
orgslug={orgslug}
|
||||||
|
assignment={assignment}
|
||||||
|
showNavigation={false}
|
||||||
|
/>
|
||||||
|
<NextActivityButton
|
||||||
|
course={course}
|
||||||
|
currentActivityId={activity.id}
|
||||||
|
orgslug={orgslug}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue