mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: reorder activity buttons
This commit is contained in:
parent
142e111c15
commit
3336140b26
1 changed files with 9 additions and 8 deletions
|
|
@ -36,14 +36,7 @@ function Activity(props: any) {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex flex-row space-x-2">
|
<div className="flex flex-row space-x-2">
|
||||||
<Link
|
{props.activity.type === "dynamic" && <>
|
||||||
href={getUriWithOrg(props.orgslug, "") + `/course/${props.courseid}/activity/${props.activity.id.replace("activity_", "")}`}
|
|
||||||
className=" hover:cursor-pointer p-1 px-3 bg-gray-200 rounded-md"
|
|
||||||
rel="noopener noreferrer">
|
|
||||||
<Eye strokeWidth={2} size={15} className="text-gray-600" />
|
|
||||||
</Link>
|
|
||||||
|
|
||||||
{props.activity.type === "dynamic" && <>
|
|
||||||
<Link
|
<Link
|
||||||
href={getUriWithOrg(props.orgslug, "") + `/course/${props.courseid}/activity/${props.activity.id.replace("activity_", "")}/edit`}
|
href={getUriWithOrg(props.orgslug, "") + `/course/${props.courseid}/activity/${props.activity.id.replace("activity_", "")}/edit`}
|
||||||
className=" hover:cursor-pointer p-1 px-3 bg-sky-700 rounded-md items-center"
|
className=" hover:cursor-pointer p-1 px-3 bg-sky-700 rounded-md items-center"
|
||||||
|
|
@ -51,6 +44,14 @@ function Activity(props: any) {
|
||||||
<div className="text-sky-100 font-bold text-xs" >Edit </div>
|
<div className="text-sky-100 font-bold text-xs" >Edit </div>
|
||||||
</Link>
|
</Link>
|
||||||
</>}
|
</>}
|
||||||
|
<Link
|
||||||
|
href={getUriWithOrg(props.orgslug, "") + `/course/${props.courseid}/activity/${props.activity.id.replace("activity_", "")}`}
|
||||||
|
className=" hover:cursor-pointer p-1 px-3 bg-gray-200 rounded-md"
|
||||||
|
rel="noopener noreferrer">
|
||||||
|
<Eye strokeWidth={2} size={15} className="text-gray-600" />
|
||||||
|
</Link>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-row pr-3 space-x-1 items-center">
|
<div className="flex flex-row pr-3 space-x-1 items-center">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue