diff --git a/src/course-outline/page-alerts/PageAlerts.jsx b/src/course-outline/page-alerts/PageAlerts.jsx index 61ebbdd2c7..828e937a28 100644 --- a/src/course-outline/page-alerts/PageAlerts.jsx +++ b/src/course-outline/page-alerts/PageAlerts.jsx @@ -1,4 +1,3 @@ -import { PluginSlot } from '@openedx/frontend-plugin-framework'; import CourseOutlinePageAlertsSlot from 'CourseAuthoring/plugin-slots/CourseOutlinePageAlertsSlot'; import React, { useState } from 'react'; import PropTypes from 'prop-types'; diff --git a/src/files-and-videos/files-page/FilesPage.jsx b/src/files-and-videos/files-page/FilesPage.jsx index 73af2636cd..057c5a22f3 100644 --- a/src/files-and-videos/files-page/FilesPage.jsx +++ b/src/files-and-videos/files-page/FilesPage.jsx @@ -9,8 +9,8 @@ import { RequestStatus } from '../../data/constants'; import Placeholder from '../../editors/Placeholder'; import { useModel } from '../../generic/model-store'; import getPageHeadTitle from '../../generic/utils'; -import { EditFileErrors, } from '../generic'; -import { fetchAssets, resetErrors, } from './data/thunks'; +import { EditFileErrors } from '../generic'; +import { fetchAssets, resetErrors } from './data/thunks'; import FilesPageProvider from './FilesPageProvider'; import messages from './messages'; diff --git a/src/files-and-videos/generic/EditFileErrors.jsx b/src/files-and-videos/generic/EditFileErrors.jsx index 8ee5dcbd08..929fce4040 100644 --- a/src/files-and-videos/generic/EditFileErrors.jsx +++ b/src/files-and-videos/generic/EditFileErrors.jsx @@ -1,4 +1,3 @@ -import { PluginSlot } from '@openedx/frontend-plugin-framework'; import EditFileErrorAlertsSlot from 'CourseAuthoring/plugin-slots/EditFileErrorAlertsSlot'; import React from 'react'; import PropTypes from 'prop-types'; diff --git a/src/files-and-videos/videos-page/VideosPage.jsx b/src/files-and-videos/videos-page/VideosPage.jsx index 0451a59f87..93baaa4491 100644 --- a/src/files-and-videos/videos-page/VideosPage.jsx +++ b/src/files-and-videos/videos-page/VideosPage.jsx @@ -1,4 +1,4 @@ -import { useIntl, } from '@edx/frontend-platform/i18n'; +import { useIntl } from '@edx/frontend-platform/i18n'; import { Container } from '@openedx/paragon'; import CourseVideosSlot from 'CourseAuthoring/plugin-slots/CourseVideosSlot'; import PropTypes from 'prop-types'; @@ -10,7 +10,7 @@ import { RequestStatus } from '../../data/constants'; import Placeholder from '../../editors/Placeholder'; import { useModel } from '../../generic/model-store'; import getPageHeadTitle from '../../generic/utils'; -import { EditFileErrors, } from '../generic'; +import { EditFileErrors } from '../generic'; import { resetErrors } from './data/thunks'; import messages from './messages'; import VideosPageProvider from './VideosPageProvider'; diff --git a/src/plugin-slots/CourseFilesSlot/index.jsx b/src/plugin-slots/CourseFilesSlot/index.jsx index fe0d45e89d..5600354df7 100644 --- a/src/plugin-slots/CourseFilesSlot/index.jsx +++ b/src/plugin-slots/CourseFilesSlot/index.jsx @@ -9,15 +9,18 @@ import { resetErrors, updateAssetLock, updateAssetOrder, - validateAssetFiles + validateAssetFiles, } from 'CourseAuthoring/files-and-videos/files-page/data/thunks'; import FileInfoModalSidebar from 'CourseAuthoring/files-and-videos/files-page/FileInfoModalSidebar'; import FileThumbnail from 'CourseAuthoring/files-and-videos/files-page/FileThumbnail'; import FileValidationModal from 'CourseAuthoring/files-and-videos/files-page/FileValidationModal'; import messages from 'CourseAuthoring/files-and-videos/files-page/messages'; -import { AccessColumn, ActiveColumn, FileTable, ThumbnailColumn } from 'CourseAuthoring/files-and-videos/generic'; +import { + AccessColumn, ActiveColumn, FileTable, ThumbnailColumn, +} from 'CourseAuthoring/files-and-videos/generic'; import { useModels } from 'CourseAuthoring/generic/model-store'; import { getFileSizeToClosestByte } from 'CourseAuthoring/utils'; +import PropTypes from 'prop-types'; import React from 'react'; import { useDispatch, useSelector } from 'react-redux'; @@ -166,4 +169,9 @@ const CourseFilesSlot = ({ courseId }) => { ); }; + +CourseFilesSlot.propTypes = { + courseId: PropTypes.string.isRequired, +}; + export default CourseFilesSlot; diff --git a/src/plugin-slots/CourseOutlinePageAlertsSlot/index.jsx b/src/plugin-slots/CourseOutlinePageAlertsSlot/index.jsx index 7ed5e9137b..fbfcede6cb 100644 --- a/src/plugin-slots/CourseOutlinePageAlertsSlot/index.jsx +++ b/src/plugin-slots/CourseOutlinePageAlertsSlot/index.jsx @@ -1,5 +1,5 @@ import { PluginSlot } from '@openedx/frontend-plugin-framework'; import React from 'react'; -const CourseOutlinePageAlertsSlot = () => -export default CourseOutlinePageAlertsSlot +const CourseOutlinePageAlertsSlot = () => ; +export default CourseOutlinePageAlertsSlot; diff --git a/src/plugin-slots/CourseVideosSlot/index.jsx b/src/plugin-slots/CourseVideosSlot/index.jsx index 8603f1957f..558928182d 100644 --- a/src/plugin-slots/CourseVideosSlot/index.jsx +++ b/src/plugin-slots/CourseVideosSlot/index.jsx @@ -1,13 +1,15 @@ import { useIntl } from '@edx/frontend-platform/i18n'; import { PluginSlot } from '@openedx/frontend-plugin-framework'; -import { ActionRow, Button, CheckboxFilter, useToggle } from '@openedx/paragon'; +import { + ActionRow, Button, CheckboxFilter, useToggle, +} from '@openedx/paragon'; import { RequestStatus } from 'CourseAuthoring/data/constants'; import { ActiveColumn, FileTable, StatusColumn, ThumbnailColumn, - TranscriptColumn + TranscriptColumn, } from 'CourseAuthoring/files-and-videos/generic'; import FILES_AND_UPLOAD_TYPE_FILTERS from 'CourseAuthoring/files-and-videos/generic/constants'; import { @@ -16,7 +18,7 @@ import { deleteVideoFile, fetchVideoDownload, fetchVideos, getUsagePaths, markVideoUploadsInProgressAsFailed, resetErrors, - updateVideoOrder + updateVideoOrder, } from 'CourseAuthoring/files-and-videos/videos-page/data/thunks'; import { getFormattedDuration, resampleFile } from 'CourseAuthoring/files-and-videos/videos-page/data/utils'; import VideoInfoModalSidebar from 'CourseAuthoring/files-and-videos/videos-page/info-sidebar'; @@ -24,7 +26,8 @@ import messages from 'CourseAuthoring/files-and-videos/videos-page/messages'; import TranscriptSettings from 'CourseAuthoring/files-and-videos/videos-page/transcript-settings'; import UploadModal from 'CourseAuthoring/files-and-videos/videos-page/upload-modal'; import VideoThumbnail from 'CourseAuthoring/files-and-videos/videos-page/VideoThumbnail'; -import { useModel, useModels } from 'CourseAuthoring/generic/model-store'; +import { useModels } from 'CourseAuthoring/generic/model-store'; +import PropTypes from 'prop-types'; import React, { useEffect, useRef } from 'react'; import { useDispatch, useSelector } from 'react-redux'; @@ -113,8 +116,6 @@ const CourseVideosSlot = ({ courseId }) => { } }, [addVideoStatus]); - - const data = { supportedFileFormats, encodingsDownloadUrl, @@ -268,4 +269,8 @@ const CourseVideosSlot = ({ courseId }) => { ); }; +CourseVideosSlot.propTypes = { + courseId: PropTypes.string.isRequired, +}; + export default CourseVideosSlot; diff --git a/src/plugin-slots/EditFileErrorAlertsSlot/index.jsx b/src/plugin-slots/EditFileErrorAlertsSlot/index.jsx index d1903ffb3a..b60ef29d55 100644 --- a/src/plugin-slots/EditFileErrorAlertsSlot/index.jsx +++ b/src/plugin-slots/EditFileErrorAlertsSlot/index.jsx @@ -1,8 +1,5 @@ import { PluginSlot } from '@openedx/frontend-plugin-framework'; - -const EditFileErrorAlertsSlot = () => - - +const EditFileErrorAlertsSlot = () => ; export default EditFileErrorAlertsSlot;