Skip to content

Commit f17820b

Browse files
committed
fix: pass readOnly flag to Header
1 parent 85834d1 commit f17820b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/library-authoring/import-course/CourseImportHomePage.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const EmptyState = () => (
3434

3535
export const CourseImportHomePage = () => {
3636
const intl = useIntl();
37-
const { libraryId, libraryData } = useLibraryContext();
37+
const { libraryId, libraryData, readOnly } = useLibraryContext();
3838
const { data: courseImports } = useCourseImports(libraryId);
3939

4040
if (!courseImports || !libraryData) {
@@ -53,6 +53,7 @@ export const CourseImportHomePage = () => {
5353
org={libraryData.org}
5454
contextId={libraryId}
5555
isLibrary
56+
readOnly={readOnly}
5657
containerProps={{
5758
size: undefined,
5859
}}

0 commit comments

Comments
 (0)