File tree Expand file tree Collapse file tree
generic/course-upload-image
schedule-section/certificate-display-row Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -134,8 +134,7 @@ const CourseUploadImage = ({
134134 placeholder = { customInputPlaceholder
135135 || intl . formatMessage ( messages . uploadImageInputPlaceholder , {
136136 identifierFieldText,
137- } )
138- }
137+ } ) }
139138 disabled = { disabled }
140139 />
141140 </ Card . Footer >
Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ const ScheduleAndDetails = () => {
6262 const {
6363 isLoading : isLoadingUserPermissions ,
6464 canViewScheduleAndDetails,
65- canEditSchedule,
66- canEditDetails,
65+ canEditSchedule,
66+ canEditDetails,
6767 } = useCourseUserPermissions ( courseId , getScheduleAndDetailsPermissions ( courseId ) ) ;
6868
6969 const isLoading = loadingDetailsStatus === RequestStatus . IN_PROGRESS
@@ -404,11 +404,9 @@ const ScheduleAndDetails = () => {
404404 key = "save-button"
405405 onClick = { handleUpdateValues }
406406 disabled = { hasErrors || ( ! isScheduleEditable && ! isDetailsEditable ) }
407- state = {
408- isQueryPending
409- ? STATEFUL_BUTTON_STATES . pending
410- : STATEFUL_BUTTON_STATES . default
411- }
407+ state = { isQueryPending
408+ ? STATEFUL_BUTTON_STATES . pending
409+ : STATEFUL_BUTTON_STATES . default }
412410 { ...updateValuesButtonState }
413411 /> ,
414412 ] . filter ( Boolean ) }
Original file line number Diff line number Diff line change @@ -167,9 +167,7 @@ const IntroducingSection = ({
167167 />
168168 </ >
169169 ) }
170- { aboutPageEditable && (
171- < IntroductionVideo introVideo = { introVideo } isEditable = { isEditable } onChange = { onChange } />
172- ) }
170+ { aboutPageEditable && < IntroductionVideo introVideo = { introVideo } isEditable = { isEditable } onChange = { onChange } /> }
173171 </ section >
174172 ) ;
175173} ;
Original file line number Diff line number Diff line change @@ -135,7 +135,12 @@ const CertificateDisplayRow = ({
135135 </ Dropdown . Toggle >
136136 < Dropdown . Menu >
137137 { dropdownOptions . map ( ( { id, label } ) => (
138- < Dropdown . Item key = { id } onClick = { isEditable ? ( ) => handleOnChange ( id ) : undefined } >
138+ < Dropdown . Item
139+ key = { id }
140+ onClick = { isEditable
141+ ? ( ) => handleOnChange ( id )
142+ : undefined }
143+ >
139144 { label }
140145 </ Dropdown . Item >
141146 ) ) }
You can’t perform that action at this time.
0 commit comments