Skip to content

Commit ff342c2

Browse files
committed
chore: lint fixes
1 parent d79e69c commit ff342c2

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/library-authoring/create-library/CreateLibrary.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export const CreateLibrary = ({
121121
const validExtensions = ['.zip', '.tar.gz', '.tar'];
122122
const fileName = file.name.toLowerCase();
123123
const isValidFile = validExtensions.some(ext => fileName.endsWith(ext));
124-
124+
125125
if (isValidFile) {
126126
setUploadedFile(file);
127127
// Immediately start the restore process
@@ -165,7 +165,7 @@ export const CreateLibrary = ({
165165
) : null}
166166
/>
167167
)}
168-
168+
169169
{/* Archive upload section - shown above form when in archive mode */}
170170
{isFromArchive && (
171171
<div className="mb-4">
@@ -292,12 +292,12 @@ export const CreateLibrary = ({
292292
}
293293
onSubmit={(values) => {
294294
const submitData = { ...values } as CreateContentLibraryArgs;
295-
295+
296296
// If we're creating from archive and have a successful restore, include the learning_package_id
297297
if (isFromArchive && restoreStatus?.state === LibraryRestoreStatus.Succeeded && restoreStatus.result) {
298298
submitData.learning_package = restoreStatus.result.learning_package_id;
299299
}
300-
300+
301301
mutate(submitData);
302302
}}
303303
>

src/library-authoring/create-library/data/restoreApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ export const createLibraryRestore = async (archiveFile: File): Promise<CreateLib
1717
export const getLibraryRestoreStatus = async (taskId: string): Promise<GetLibraryRestoreStatusResponse> => {
1818
const { data } = await getAuthenticatedHttpClient().get(getLibraryRestoreStatusApiUrl(taskId));
1919
return data;
20-
};
20+
};

src/library-authoring/create-library/data/restoreConstants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ export const libraryRestoreQueryKeys = {
4040
all: ['library-v2-restore'],
4141
restoreStatus: (taskId: string) => [...libraryRestoreQueryKeys.all, 'status', taskId],
4242
restoreMutation: () => [...libraryRestoreQueryKeys.all, 'create-restore'],
43-
};
43+
};

src/library-authoring/create-library/data/restoreHooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ export const useGetLibraryRestoreStatus = (taskId: string) => useQuery<GetLibrar
2727
export const useCreateLibraryRestore = () => useMutation<CreateLibraryRestoreResponse, Error, File>({
2828
mutationKey: libraryRestoreQueryKeys.restoreMutation(),
2929
mutationFn: createLibraryRestore,
30-
});
30+
});

0 commit comments

Comments
 (0)