Commit 331510e9 authored by Jon Moore's avatar Jon Moore
Browse files

Added in working filter and record page examples

parent 1286f346
Pipeline #23937 passed with stage
in 2 minutes and 30 seconds
......@@ -13,10 +13,10 @@ export default [
}),
},
{
contentTypeID: 'ctTest',
contentTypeID: 'exampleCT',
component: Loadable({
loader: () => {
return import('~/pages/Home/Homepage');
return import('~/pages/Records/ExampleRecord.page');
},
loading: Loading,
}),
......
......@@ -71,8 +71,6 @@ const ExampleListing = ({
ExampleListing.propTypes = {
className: PropTypes.string,
filters: PropTypes.arrayOf(PropTypes.object),
history: PropTypes.object,
language: PropTypes.string,
paging: PropTypes.object,
results: PropTypes.arrayOf(PropTypes.object),
updateFilters: PropTypes.func,
......
......@@ -23,7 +23,7 @@ const ExampleListingPage = () => {
type: 'entry',
fields: ['categories[]'],
params: {
contentTypeIds: ['eventCategories'],
contentTypeIds: ['exampleCategories'],
},
},
],
......
......@@ -6,10 +6,7 @@ import ExampleRecord from '~/features/exampleRecord/components/ExampleRecord';
const ExampleRecordPage = ({ entry }) => {
return (
<MainLayout>
<ExampleRecord
entry={entry}
language={entry ? entry.sys.language : 'en-GB'}
/>
<ExampleRecord entry={entry} />
</MainLayout>
);
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment