Skip to content

Commit

Permalink
Remove edit link from team course lists
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkcuys committed Feb 5, 2024
1 parent 85b7dad commit 090d14f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions frontend/components/dashboard/CourseList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const CourseTable = ({courses, totalPages}) => <>
<td>Title</td>
<td>Provider</td>
<td>Date Added</td>
<td></td>
</tr>
</thead>
<tbody>
Expand All @@ -25,7 +24,6 @@ const CourseTable = ({courses, totalPages}) => <>
<td><a href={course.course_page_path}>{`${course.unlisted ? "[UNLISTED] " : ""}${course.title}`}</a></td>
<td>{course.provider}</td>
<td>{date}</td>
<td><a href={course.course_edit_path} className="p2pu-btn btn btn-sm dark">edit</a></td>
</tr>
)
})
Expand Down Expand Up @@ -112,13 +110,13 @@ const CourseList = props => {
}, [])
return (
<>
<div className="text-right">
<a href={props.editTeamCourseListUrl}>Manage course list</a>
</div>
<CourseTable
courses={courseList.courses}
totalPages={1}
/>
<div className="text-right">
<a href={props.editTeamCourseListUrl}>Add courses</a>
</div>
</>
);
}
Expand Down

0 comments on commit 090d14f

Please sign in to comment.