Skip to content

Commit

Permalink
chore: fix minor formatting nits
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald committed Oct 22, 2024
1 parent c177cfa commit f7c757b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions src/library-authoring/data/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ export const getXBlockFieldsApiUrl = (usageKey: string) => `${getApiBaseUrl()}/a
*/
export const getXBlockOLXApiUrl = (usageKey: string) => `${getLibraryBlockMetadataUrl(usageKey)}olx/`;
/**
* Get the URL for the xblock Publish API
*/
* Get the URL for the xblock Publish API
*/
export const getXBlockPublishApiUrl = (usageKey: string) => `${getApiBaseUrl()}/api/libraries/v2/blocks/${usageKey}/publish/`;
/**
* Get the URL for the xblock Assets List API
Expand Down Expand Up @@ -202,12 +202,12 @@ export interface LibraryBlockMetadata {
defKey: string | null;
displayName: string;
lastPublished: string | null;
publishedBy: string | null,
lastDraftCreated: string | null,
publishedBy: string | null;
lastDraftCreated: string | null;
lastDraftCreatedBy: string | null,
hasUnpublishedChanges: boolean;
created: string | null,
modified: string | null,
created: string | null;
modified: string | null;
tagsCount: number;
collections: CollectionMetadata[];
}
Expand Down Expand Up @@ -426,8 +426,8 @@ export async function setXBlockOLX(usageKey: string, newOLX: string): Promise<st
}

/**
* Publish the given XBlock.
*/
* Publish the given XBlock.
*/
export async function publishXBlock(usageKey: string) {
const client = getAuthenticatedHttpClient();
await client.post(getXBlockPublishApiUrl(usageKey));
Expand Down
4 changes: 2 additions & 2 deletions src/library-authoring/data/apiHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,8 @@ export const useUpdateXBlockOLX = (usageKey: string) => {
};

/**
* Publish changes to a library component
*/
* Publish changes to a library component
*/
export const usePublishComponent = (usageKey: string) => {
const queryClient = useQueryClient();
const contentLibraryId = getLibraryId(usageKey);
Expand Down

0 comments on commit f7c757b

Please sign in to comment.