chore: removing cms link in course card items
This commit is contained in:
@@ -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 };
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user