Skip to content

Commit 85da9dd

Browse files
committed
chore: apply review suggestions
1 parent 8b016ac commit 85da9dd

6 files changed

Lines changed: 9 additions & 7 deletions

File tree

src/course-outline/data/api.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,12 +395,14 @@ export async function createCourseXblock({
395395
libraryContentKey,
396396
}: {
397397
type: string,
398-
category?: string, // The category of the XBlock. Defaults to the type if not provided.
398+
/** The category of the XBlock. Defaults to the type if not provided. */
399+
category?: string,
399400
parentLocator: string,
400401
displayName?: string,
401402
boilerplate?: string,
402403
stagedContent?: string,
403-
libraryContentKey?: string, // component key from library if being imported.
404+
/** component key from library if being imported. */
405+
libraryContentKey?: string,
404406
}) {
405407
const body = {
406408
type,

src/course-outline/drag-helper/CourseItemOverlay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Col, Icon, Row } from '@openedx/paragon';
22
import { ArrowRight, DragIndicator } from '@openedx/paragon/icons';
33
import { ContainerType } from '@src/generic/key-utils';
4-
import { getItemStatusBorder, ItemBadgeStatusValue } from '../utils';
4+
import { getItemStatusBorder, type ItemBadgeStatusValue } from '../utils';
55

66
interface ItemProps {
77
displayName: string;

src/course-outline/outline-sidebar/AddSidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { useCallback, useMemo } from 'react';
1616
import { ComponentSelectedEvent } from '@src/library-authoring/common/context/ComponentPickerContext';
1717
import { COMPONENT_TYPES } from '@src/generic/block-type-utils/constants';
1818
import { ContainerType } from '@src/generic/key-utils';
19-
import { XBlock } from '@src/data/types';
19+
import type { XBlock } from '@src/data/types';
2020
import { ContentType } from '../../library-authoring/routes';
2121
import { ComponentPicker } from '../../library-authoring';
2222
import messages from './messages';

src/course-outline/utils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const getItemStatusBadgeContent = (
4747
status: ItemBadgeStatusValue,
4848
messages: Record<string, MessageDescriptor>,
4949
intl: IntlShape,
50-
): any => {
50+
) => {
5151
switch (status) {
5252
case ITEM_BADGE_STATUS.gated:
5353
return {

src/library-authoring/component-picker/ComponentPicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
type ComponentSelectionChangedEvent,
1010
ComponentPickerProvider,
1111
} from '../common/context/ComponentPickerContext';
12-
import { LibraryIdOneOrMore, LibraryProvider, useLibraryContext } from '../common/context/LibraryContext';
12+
import { type LibraryIdOneOrMore, LibraryProvider, useLibraryContext } from '../common/context/LibraryContext';
1313
import { SidebarProvider } from '../common/context/SidebarContext';
1414
import LibraryAuthoringPage from '../LibraryAuthoringPage';
1515
import LibraryCollectionPage from '../collections/LibraryCollectionPage';

src/library-authoring/component-picker/SelectLibrary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const EmptyState = ({ hasSearchQuery }: EmptyStateProps) => (
3939
);
4040

4141
interface SelectLibraryProps {
42-
selectedLibrary: string | undefined;
42+
selectedLibrary?: string;
4343
setSelectedLibrary: (libraryKey: string) => void;
4444
itemType: ContentType;
4545
}

0 commit comments

Comments
 (0)