Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add existing content to a collection [FC-0062] #1416

Prev Previous commit
Next Next commit
fix: lazy load to prevent issues with circular imports
rpenido committed Oct 23, 2024
commit 81b50722a9ed4cb013500585c2ae03decb45f272
7 changes: 4 additions & 3 deletions src/library-authoring/component-picker/ComponentPicker.tsx
Original file line number Diff line number Diff line change
@@ -8,11 +8,12 @@ import {
LibraryProvider,
useLibraryContext,
} from '../common/context';
// eslint-disable-next-line import/no-cycle
import LibraryAuthoringPage from '../LibraryAuthoringPage';
import LibraryCollectionPage from '../collections/LibraryCollectionPage';
import SelectLibrary from './SelectLibrary';

// eslint-disable-next-line import/no-cycle
const LibraryAuthoringPage = React.lazy(() => import('../LibraryAuthoringPage'));
const LibraryCollectionPage = React.lazy(() => import('../collections/LibraryCollectionPage'));

interface LibraryComponentPickerProps {
returnToLibrarySelection: () => void;
}