Moving load more limit to constant.

This commit is contained in:
David Jay
2017-02-14 18:54:51 -05:00
parent 00c2305ff7
commit fbf543727b
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import React from 'react';
import I18n from 'coral-framework/modules/i18n/i18n';
import translations from 'coral-framework/translations.json';
import {ADDTL_COMMENTS_ON_LOAD_MORE} from 'coral-framework/constants/comments';
import {Button} from 'coral-ui';
const lang = new I18n(translations);
@@ -15,7 +16,7 @@ const loadMoreComments = (id, comments, loadMore, parentId) => {
: comments[comments.length - 1].created_at;
loadMore({
limit: 10,
limit: ADDTL_COMMENTS_ON_LOAD_MORE,
cursor,
asset_id: id,
parent_id: parentId,
@@ -0,0 +1 @@
export const ADDTL_COMMENTS_ON_LOAD_MORE = 10;