1
1
import { useIntl } from '@edx/frontend-platform/i18n' ;
2
2
import { 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' ;
4
6
import { RequestStatus } from 'CourseAuthoring/data/constants' ;
5
7
import {
6
8
ActiveColumn ,
7
9
FileTable ,
8
10
StatusColumn ,
9
11
ThumbnailColumn ,
10
- TranscriptColumn
12
+ TranscriptColumn ,
11
13
} from 'CourseAuthoring/files-and-videos/generic' ;
12
14
import FILES_AND_UPLOAD_TYPE_FILTERS from 'CourseAuthoring/files-and-videos/generic/constants' ;
13
15
import {
@@ -16,15 +18,16 @@ import {
16
18
deleteVideoFile ,
17
19
fetchVideoDownload , fetchVideos ,
18
20
getUsagePaths , markVideoUploadsInProgressAsFailed , resetErrors ,
19
- updateVideoOrder
21
+ updateVideoOrder ,
20
22
} from 'CourseAuthoring/files-and-videos/videos-page/data/thunks' ;
21
23
import { getFormattedDuration , resampleFile } from 'CourseAuthoring/files-and-videos/videos-page/data/utils' ;
22
24
import VideoInfoModalSidebar from 'CourseAuthoring/files-and-videos/videos-page/info-sidebar' ;
23
25
import messages from 'CourseAuthoring/files-and-videos/videos-page/messages' ;
24
26
import TranscriptSettings from 'CourseAuthoring/files-and-videos/videos-page/transcript-settings' ;
25
27
import UploadModal from 'CourseAuthoring/files-and-videos/videos-page/upload-modal' ;
26
28
import 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' ;
28
31
import React , { useEffect , useRef } from 'react' ;
29
32
import { useDispatch , useSelector } from 'react-redux' ;
30
33
@@ -113,8 +116,6 @@ const CourseVideosSlot = ({ courseId }) => {
113
116
}
114
117
} , [ addVideoStatus ] ) ;
115
118
116
-
117
-
118
119
const data = {
119
120
supportedFileFormats,
120
121
encodingsDownloadUrl,
@@ -268,4 +269,8 @@ const CourseVideosSlot = ({ courseId }) => {
268
269
) ;
269
270
} ;
270
271
272
+ CourseVideosSlot . propTypes = {
273
+ courseId : PropTypes . string . isRequired ,
274
+ } ;
275
+
271
276
export default CourseVideosSlot ;
0 commit comments