collective page refactoring
This commit is contained in:
1 parent
866d82f44c
commit
f2802c87a8
1 file changed
+2
-8
@@ -9,12 +9,6 @@ import menuModel from '../src/models/menu'
|
|||||||
import { buildMenu } from '../src/lib/menu'
|
import { buildMenu } from '../src/lib/menu'
|
||||||
import { meta } from '../src/lib/meta'
|
import { meta } from '../src/lib/meta'
|
||||||
|
|
||||||
const PersonCardList = ({ children }) => (
|
|
||||||
<div className="PersonCardList">
|
|
||||||
{children}
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
|
|
||||||
const Page = (props) => (
|
const Page = (props) => (
|
||||||
<App
|
<App
|
||||||
menu={buildMenu(props.pageUrl, menuModel)}
|
menu={buildMenu(props.pageUrl, menuModel)}
|
||||||
@@ -31,7 +25,7 @@ const Page = (props) => (
|
|||||||
<CollectiveImage data={props.image} />
|
<CollectiveImage data={props.image} />
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<PersonCardList>
|
<div className="PersonCardList">
|
||||||
{props.persons.map((person, index) => (
|
{props.persons.map((person, index) => (
|
||||||
<PersonCard
|
<PersonCard
|
||||||
key={index}
|
key={index}
|
||||||
@@ -41,7 +35,7 @@ const Page = (props) => (
|
|||||||
name={person.name}
|
name={person.name}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</PersonCardList>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</App>
|
</App>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user