Switch page title for different pages
This commit is contained in:
@@ -3,14 +3,16 @@ import HeroHeadline from './HeroHeadline';
|
||||
import HeadlineGroup from './HeadlineGroup';
|
||||
import QuadrantSection from './QuadrantSection';
|
||||
import Fadeable from './Fadeable';
|
||||
import SetTitle from './SetTitle';
|
||||
|
||||
import { translate } from '../../common/config';
|
||||
import { groupByQuadrants } from '../../common/model';
|
||||
|
||||
export default function PageQuadrant({ leaving, onLeave, pageName, items }) {
|
||||
export default function PageQuadrant({ leaving, onLeave, pageName, items, ...props }) {
|
||||
const groups = groupByQuadrants(items);
|
||||
return (
|
||||
<Fadeable leaving={leaving} onLeave={onLeave}>
|
||||
<SetTitle {...props} title={translate(pageName)} />
|
||||
<HeadlineGroup>
|
||||
<HeroHeadline>{translate(pageName)}</HeroHeadline>
|
||||
</HeadlineGroup>
|
||||
|
||||
Reference in New Issue
Block a user