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 [ ...@@ -13,10 +13,10 @@ export default [
}), }),
}, },
{ {
contentTypeID: 'ctTest', contentTypeID: 'exampleCT',
component: Loadable({ component: Loadable({
loader: () => { loader: () => {
return import('~/pages/Home/Homepage'); return import('~/pages/Records/ExampleRecord.page');
}, },
loading: Loading, loading: Loading,
}), }),
......
...@@ -71,8 +71,6 @@ const ExampleListing = ({ ...@@ -71,8 +71,6 @@ const ExampleListing = ({
ExampleListing.propTypes = { ExampleListing.propTypes = {
className: PropTypes.string, className: PropTypes.string,
filters: PropTypes.arrayOf(PropTypes.object), filters: PropTypes.arrayOf(PropTypes.object),
history: PropTypes.object,
language: PropTypes.string,
paging: PropTypes.object, paging: PropTypes.object,
results: PropTypes.arrayOf(PropTypes.object), results: PropTypes.arrayOf(PropTypes.object),
updateFilters: PropTypes.func, updateFilters: PropTypes.func,
......
...@@ -23,7 +23,7 @@ const ExampleListingPage = () => { ...@@ -23,7 +23,7 @@ const ExampleListingPage = () => {
type: 'entry', type: 'entry',
fields: ['categories[]'], fields: ['categories[]'],
params: { params: {
contentTypeIds: ['eventCategories'], contentTypeIds: ['exampleCategories'],
}, },
}, },
], ],
......
...@@ -6,10 +6,7 @@ import ExampleRecord from '~/features/exampleRecord/components/ExampleRecord'; ...@@ -6,10 +6,7 @@ import ExampleRecord from '~/features/exampleRecord/components/ExampleRecord';
const ExampleRecordPage = ({ entry }) => { const ExampleRecordPage = ({ entry }) => {
return ( return (
<MainLayout> <MainLayout>
<ExampleRecord <ExampleRecord entry={entry} />
entry={entry}
language={entry ? entry.sys.language : 'en-GB'}
/>
</MainLayout> </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