11import { useIntl } from '@edx/frontend-platform/i18n' ;
22import { PluginSlot } from '@openedx/frontend-plugin-framework' ;
3- import { ActionRow , Button , CheckboxFilter , useToggle } from '@openedx/paragon' ;
3+ import {
4+ ActionRow , Button , CheckboxFilter , useToggle ,
5+ } from '@openedx/paragon' ;
46import { RequestStatus } from 'CourseAuthoring/data/constants' ;
57import {
68 ActiveColumn ,
79 FileTable ,
810 StatusColumn ,
911 ThumbnailColumn ,
10- TranscriptColumn
12+ TranscriptColumn ,
1113} from 'CourseAuthoring/files-and-videos/generic' ;
1214import FILES_AND_UPLOAD_TYPE_FILTERS from 'CourseAuthoring/files-and-videos/generic/constants' ;
1315import {
@@ -16,15 +18,16 @@ import {
1618 deleteVideoFile ,
1719 fetchVideoDownload , fetchVideos ,
1820 getUsagePaths , markVideoUploadsInProgressAsFailed , resetErrors ,
19- updateVideoOrder
21+ updateVideoOrder ,
2022} from 'CourseAuthoring/files-and-videos/videos-page/data/thunks' ;
2123import { getFormattedDuration , resampleFile } from 'CourseAuthoring/files-and-videos/videos-page/data/utils' ;
2224import VideoInfoModalSidebar from 'CourseAuthoring/files-and-videos/videos-page/info-sidebar' ;
2325import messages from 'CourseAuthoring/files-and-videos/videos-page/messages' ;
2426import TranscriptSettings from 'CourseAuthoring/files-and-videos/videos-page/transcript-settings' ;
2527import UploadModal from 'CourseAuthoring/files-and-videos/videos-page/upload-modal' ;
2628import VideoThumbnail from 'CourseAuthoring/files-and-videos/videos-page/VideoThumbnail' ;
27- import { useModel , useModels } from 'CourseAuthoring/generic/model-store' ;
29+ import { useModels } from 'CourseAuthoring/generic/model-store' ;
30+ import PropTypes from 'prop-types' ;
2831import React , { useEffect , useRef } from 'react' ;
2932import { useDispatch , useSelector } from 'react-redux' ;
3033
@@ -113,8 +116,6 @@ const CourseVideosSlot = ({ courseId }) => {
113116 }
114117 } , [ addVideoStatus ] ) ;
115118
116-
117-
118119 const data = {
119120 supportedFileFormats,
120121 encodingsDownloadUrl,
@@ -268,4 +269,8 @@ const CourseVideosSlot = ({ courseId }) => {
268269 ) ;
269270} ;
270271
272+ CourseVideosSlot . propTypes = {
273+ courseId : PropTypes . string . isRequired ,
274+ } ;
275+
271276export default CourseVideosSlot ;
0 commit comments