chore: lint fixes
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
// import { StrictDict } from 'utils';
|
||||
/*
|
||||
import { StrictDict } from 'utils';
|
||||
import { locationId } from 'data/constants/app';
|
||||
// import { paramKeys } from './constants';
|
||||
import { paramKeys } from './constants';
|
||||
import urls from './urls';
|
||||
import {
|
||||
// client,
|
||||
client,
|
||||
get,
|
||||
// post,
|
||||
post,
|
||||
stringifyUrl,
|
||||
} from './utils';
|
||||
*/
|
||||
|
||||
/*********************************************************************************
|
||||
* GET Actions
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
import { defineMessages } from '@edx/frontend-platform/i18n';
|
||||
import { gradingStatuses } from './constants';
|
||||
|
||||
const messages = defineMessages({
|
||||
ungraded: {
|
||||
id: 'learner-dashboard.lms-api.gradingStatusDisplay.ungraded',
|
||||
defaultMessage: 'Ungraded',
|
||||
description: 'Grading status label for ungraded submission',
|
||||
},
|
||||
locked: {
|
||||
id: 'learner-dashboard.lms-api.gradingStatusDisplay.locked',
|
||||
defaultMessage: 'Currently being graded by someone else',
|
||||
description: 'Grading status label for locked submission',
|
||||
},
|
||||
graded: {
|
||||
id: 'learner-dashboard.lms-api.gradingStatusDisplay.graded',
|
||||
defaultMessage: 'Grading Completed',
|
||||
description: 'Grading status label for graded submission',
|
||||
},
|
||||
inProgress: {
|
||||
id: 'learner-dashboard.lms-api.gradingStatusDisplay.inProgress',
|
||||
defaultMessage: 'You are currently grading this response',
|
||||
description: 'Grading status label for in-progress submission',
|
||||
},
|
||||
});
|
||||
|
||||
// re-keying the messages to ensure that the api can link to them even if the passed
|
||||
// status keys change.
|
||||
export default {
|
||||
[gradingStatuses.ungraded]: messages.ungraded,
|
||||
[gradingStatuses.locked]: messages.locked,
|
||||
[gradingStatuses.graded]: messages.graded,
|
||||
[gradingStatuses.inProgress]: messages.inProgress,
|
||||
};
|
||||
Reference in New Issue
Block a user