Skip to content

Commit

Permalink
fix: wrapping catalog search results in paragon container to fit page…
Browse files Browse the repository at this point in the history
… formatting (#313)
  • Loading branch information
alex-sheehan-edx authored May 15, 2023
1 parent de642b2 commit 16eb871
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/components/PageWrapper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@ import { PAGE_TITLE } from '../constants';
export const DATA_TEST_ID = 'enterprise-catalogs-content';

// eslint-disable-next-line react/prop-types
const PageWrapper = ({ children, className }) => (
<Container className={className}>
const PageWrapper = ({ children, className, size }) => (
<Container className={className} size={size}>
<Helmet title={PAGE_TITLE} />
<div data-testid={DATA_TEST_ID}>{children}</div>
</Container>
);

PageWrapper.defaultProps = {
className: '',
size: undefined,
};

export default PageWrapper;
2 changes: 1 addition & 1 deletion src/components/catalogs/CatalogSearch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ const CatalogSearch = (intl) => {
const defaultInstantSearchFilter = `${LEARNING_TYPE_REFINEMENT}:${CONTENT_TYPE_COURSE} OR ${LEARNING_TYPE_REFINEMENT}:${CONTENT_TYPE_PROGRAM} OR ${LEARNING_TYPE_REFINEMENT}:"${EXEC_ED_TITLE}"`;

return (
<PageWrapper className="mt-3 mb-5">
<PageWrapper className="mt-3 mb-5" size="xl">
<section>
<FormattedMessage
id="catalogs.enterpriseCatalogs.header"
Expand Down

0 comments on commit 16eb871

Please sign in to comment.