chore: removing cms link in course card items

This commit is contained in:
johnvente
2024-03-22 12:46:20 -05:00
parent 371876b4db
commit b58a673bba
3 changed files with 0 additions and 12 deletions

View File

@@ -66,8 +66,6 @@ describe('<CardItem />', () => {
expect(btnReRunCourse).toHaveAttribute('href', props.rerunLink);
const viewLiveLink = getByText(messages.viewLiveBtnText.defaultMessage);
expect(viewLiveLink).toHaveAttribute('href', props.lmsLink);
const editInStudioLink = getByText(messages.editStudioBtnText.defaultMessage);
expect(editInStudioLink).toHaveAttribute('href', props.cmsLink);
});
it('should render course details for library course', () => {
const props = { ...studioHomeMock.archivedCourses[0], isLibraries: true };

View File

@@ -28,7 +28,6 @@ const CardItem = ({
courseKey,
isPaginated,
url,
cmsLink,
}) => {
const {
allowCourseReruns,
@@ -76,9 +75,6 @@ const CardItem = ({
<Dropdown.Item href={lmsLink}>
{intl.formatMessage(messages.viewLiveBtnText)}
</Dropdown.Item>
<Dropdown.Item href={cmsLink}>
{intl.formatMessage(messages.editStudioBtnText)}
</Dropdown.Item>
</Dropdown.Menu>
</Dropdown>
) : (
@@ -114,14 +110,12 @@ CardItem.defaultProps = {
rerunLink: '',
lmsLink: '',
run: '',
cmsLink: '',
};
CardItem.propTypes = {
intl: intlShape.isRequired,
displayName: PropTypes.string.isRequired,
lmsLink: PropTypes.string,
cmsLink: PropTypes.string,
rerunLink: PropTypes.string,
org: PropTypes.string.isRequired,
run: PropTypes.string,

View File

@@ -49,10 +49,6 @@ const messages = defineMessages({
id: 'course-authoring.studio-home.btn.view-live.text',
defaultMessage: 'View live',
},
editStudioBtnText: {
id: 'course-authoring.studio-home.btn.edit.studio.text',
defaultMessage: 'Edit in Studio',
},
organizationTitle: {
id: 'course-authoring.studio-home.organization.title',
defaultMessage: 'Organization and library settings',