diff --git a/src/library-authoring/component-picker/SelectLibrary.tsx b/src/library-authoring/component-picker/SelectLibrary.tsx index 6ebf11a2e..2181d5c1f 100644 --- a/src/library-authoring/component-picker/SelectLibrary.tsx +++ b/src/library-authoring/component-picker/SelectLibrary.tsx @@ -83,44 +83,44 @@ const SelectLibrary = ({ selectedLibrary, setSelectedLibrary }: SelectLibraryPro value={searchQuery} placeholder={intl.formatMessage(messages.selectLibrarySearchPlaceholder)} /> -
- {data.results.length === 0 && ()} - ) => setSelectedLibrary(e.target.value)} - value={selectedLibrary} - > - {data.results.map((library) => ( - setSelectedLibrary(library.id)} - className="card-item" - > - {library.title}} - subtitle={`${library.org} / ${library.slug}`} - actions={( - {' '} - )} - /> - -

{library.description}

-
-
- ))} -
-
- {data.results.length !== 0 && ( - setCurrentPage(page)} - variant="secondary" - className="align-self-center" - /> + {data.results.length === 0 ? () : ( + <> + ) => setSelectedLibrary(e.target.value)} + value={selectedLibrary} + className="mt-4" + > + {data.results.map((library) => ( + setSelectedLibrary(library.id)} + className="card-item" + > + {library.title}} + subtitle={`${library.org} / ${library.slug}`} + actions={( + {' '} + )} + /> + +

{library.description}

+
+
+ ))} +
+ + )} );