Implement pagination

This commit is contained in:
Chi Vinh Le
2017-07-20 01:19:45 +07:00
parent 7005175fc0
commit b769e95898
8 changed files with 142 additions and 21 deletions
@@ -1,9 +1,9 @@
import React from 'react';
import {TabCount} from 'plugin-api/beta/client/components/ui';
import {t} from 'plugin-api/beta/client/services';
// TODO: This is just example code, and needs to replaced by an actual implementation.
export default ({active, asset: {featuredCommentsCount}}) => (
<span>
Featured <TabCount active={active} sub>{featuredCommentsCount}</TabCount>
{t('featured')} <TabCount active={active} sub>{featuredCommentsCount}</TabCount>
</span>
);