Skip to content

Commit

Permalink
chore: fix linter checks
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanttV committed May 1, 2024
1 parent 46a3289 commit f9641fa
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Hyperlink } from '@edx/paragon';
import { Hyperlink } from '@openedx/paragon';
import { useIntl } from '@edx/frontend-platform/i18n';
import messages from './messages';

Expand Down
2 changes: 1 addition & 1 deletion src/containers/TurnitinDisplay/components/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const messages = defineMessages({
id: 'ora-grading.TurnitinDisplay.NoSimilarityReports',
defaultMessage: 'No Turnitin Similarity Reports to show',
description: 'Message to display when there are no Turnitin Similarity Reports to show',
},
},
viewerURLExpired: {
id: 'ora-grading.TurnitinDisplay.ViewerURLExpired',
defaultMessage: 'The Similarity Report URLs have a very short lifespan (less than 1 minute) after which it will no longer be valid. Once a user has been redirected to this URL, they will be given a session that will last for 1 hour. When expired, please refresh the page to get a new URL.',
Expand Down
4 changes: 2 additions & 2 deletions src/containers/TurnitinDisplay/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { connect } from 'react-redux';

import {
Card, Collapsible, Icon, DataTable, Alert,
} from '@edx/paragon';
import { ArrowDropDown, ArrowDropUp, WarningFilled } from '@edx/paragon/icons';
} from '@openedx/paragon';
import { ArrowDropDown, ArrowDropUp, WarningFilled } from '@openedx/paragon/icons';
import messages from './components/messages';
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';

Check failure on line 10 in src/containers/TurnitinDisplay/index.jsx

View workflow job for this annotation

GitHub Actions / tests

`@edx/frontend-platform/i18n` import should occur before import of `./components/messages`

Expand Down
5 changes: 3 additions & 2 deletions src/data/redux/thunkActions/grading.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,16 @@ export const loadSubmission = () => (dispatch, getState) => {
export const loadTurnitinViewers = () => (dispatch, getState) => {
const submissionUUID = selectors.grading.selected.submissionUUID(getState());
dispatch(requests.fetchTurnitinViewers({
submissionUUID, courseId: selectors.app.courseId(getState()),
submissionUUID,
courseId: selectors.app.courseId(getState()),
onSuccess: (response) => {
dispatch(actions.grading.loadTurnitinViewers(response));
},
onFailure: (error) => {
if (error.response.status === ErrorStatuses.notFound) {
dispatch(actions.grading.loadTurnitinViewers([]));
}
}
},
}));
};

Expand Down
2 changes: 1 addition & 1 deletion src/data/redux/thunkActions/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const fetchTurnitinViewers = ({ submissionUUID, courseId, ...rest }) => (
promise: api.fetchTurnitinViewers(submissionUUID, courseId),
...rest,
}));
}
};

/**
* Tracked setLock api method. tracked to the `setLock` request key.
Expand Down
2 changes: 1 addition & 1 deletion src/data/services/lms/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const fetchSubmission = (submissionUUID) => get(
* }
*/
const fetchTurnitinViewers = (submissionUUID, courseId) => get(
stringifyUrl(`${urls.fetchTurnitinViewersUrl()}/${courseId}/api/v1/viewer-url/${submissionUUID}/`)
stringifyUrl(`${urls.fetchTurnitinViewersUrl()}/${courseId}/api/v1/viewer-url/${submissionUUID}/`),
).then(response => response.data);

/**
Expand Down

0 comments on commit f9641fa

Please sign in to comment.