Skip to content

Commit

Permalink
fix: merge errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rpenido committed Jul 24, 2024
1 parent 88e5bae commit dacf7c7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/library-authoring/LibraryAuthoringPage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ describe('<LibraryAuthoringPage />', () => {
fireEvent.click(getByRole('tab', { name: 'Home' }));
});


it('should open and close new content sidebar', async () => {
mockUseParams.mockReturnValue({ libraryId: libraryData.id });
axiosMock.onGet(getContentLibraryApiUrl(libraryData.id)).reply(200, libraryData);
Expand All @@ -288,7 +287,7 @@ describe('<LibraryAuthoringPage />', () => {
fireEvent.click(closeButton);

expect(screen.queryByText(/add content/i)).not.toBeInTheDocument();
});
});

it('show the "View All" button when viewing library with many components', async () => {
mockUseParams.mockReturnValue({ libraryId: libraryData.id });
Expand Down
2 changes: 1 addition & 1 deletion src/library-authoring/LibraryAuthoringPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const LibraryAuthoringPage = () => {
<FilterByBlockType />
<ClearFiltersButton />
<div className="flex-grow-1" />
<SearchSortWidget />
<SearchSortWidget />
</div>
<Tabs
variant="tabs"
Expand Down
1 change: 0 additions & 1 deletion src/library-authoring/LibraryHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ type LibraryHomeProps = {
handleTabChange: (key: string) => void,
};


const LibraryHome = ({ libraryId, tabList, handleTabChange } : LibraryHomeProps) => {
const intl = useIntl();
const {
Expand Down
2 changes: 1 addition & 1 deletion src/library-authoring/components/LibraryComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const LibraryComponents = ({
searchKeywords,
} = useSearchContext();

const componentList = variant === 'preview' ? hits.slice(0, 4) : hits;
const componentList = variant === 'preview' ? hits.slice(0, LIBRARY_SECTION_PREVIEW_LIMIT) : hits;

// TODO add this to LibraryContext
const { data: blockTypesData } = useLibraryBlockTypes(libraryId);
Expand Down

0 comments on commit dacf7c7

Please sign in to comment.