WIP <Compose> Refactor; 1000 tiny edits

This commit is contained in:
kibigo!
2018-01-03 12:36:21 -08:00
parent b4a3792201
commit 42f50049ff
32 changed files with 873 additions and 795 deletions

View File

@@ -25,7 +25,7 @@ const messages = defineMessages({
});
// The component.
export default function DrawerPager ({
export default function DrawerResults ({
results,
visible,
}) {
@@ -33,6 +33,7 @@ export default function DrawerPager ({
const statuses = results ? results.get('statuses') : null;
const hashtags = results ? results.get('hashtags') : null;
// This gets the total number of items.
const count = [accounts, statuses, hashtags].reduce(function (size, item) {
if (item && item.size) {
return size + item.size;
@@ -108,7 +109,8 @@ export default function DrawerPager ({
);
}
DrawerPager.propTypes = {
// Props.
DrawerResults.propTypes = {
results: ImmutablePropTypes.map,
visible: PropTypes.bool,
};