Merge pull request #1273 from lbryio/redesign-fixes

fix: add back newestFirst/oldestFirst sorting to published/downloaded pages
This commit is contained in:
Sean Yesmunt 2018-04-04 15:10:48 -04:00 committed by GitHub
commit 229cca975c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,6 +44,8 @@ class FileList extends React.PureComponent<Props, State> {
sortBy: 'dateNew',
};
(this: any).handleSortChanged = this.handleSortChanged.bind(this);
this.sortFunctions = {
dateNew: fileInfos =>
this.props.sortByHeight
@ -180,7 +182,8 @@ class FileList extends React.PureComponent<Props, State> {
value={sortBy}
onChange={this.handleSortChanged}
>
<option value="date">{__('Date')}</option>
<option value="dateNew">{__('Newest First')}</option>
<option value="dateOld">{__('Oldest First')}</option>
<option value="title">{__('Title')}</option>
</FormField>
)}