[TASK] Display only featured items in the quadrant view

This commit is contained in:
Florian Brandel
2018-05-09 13:19:39 +02:00
parent 9955744785
commit 1b969b8b7a
2 changed files with 4 additions and 4 deletions

View File

@@ -6,10 +6,10 @@ import Fadeable from './Fadeable';
import SetTitle from './SetTitle';
import { translate } from '../../common/config';
import { groupByQuadrants } from '../../common/model';
import {featuredOnly, groupByQuadrants} from '../../common/model';
export default function PageQuadrant({ leaving, onLeave, pageName, items, ...props }) {
const groups = groupByQuadrants(items);
const groups = groupByQuadrants(featuredOnly(items));
return (
<Fadeable leaving={leaving} onLeave={onLeave}>
<SetTitle {...props} title={translate(pageName)} />