8000 Adding the mobile nav bar to the recommendations screen. · elsewhencode/wp-calypso@175fb63 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.

Commit 175fb63

Browse files
committed
Adding the mobile nav bar to the recommendations screen.
1 parent 89d39cd commit 175fb63

File tree

1 file changed

+14
-9
lines changed
  • client/reader/recommendations/for-you

1 file changed

+14
-9
lines changed

client/reader/recommendations/for-you/index.jsx

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import times from 'lodash/utility/times';
33
import url from 'url';
44

55
import Main from 'components/main';
6+
import MobileBackToSidebar from 'components/mobile-back-to-sidebar';
67
import InfiniteList from 'components/infinite-list';
78
import ListItem from 'reader/list-item';
89
import Icon from 'reader/list-item/icon';
@@ -127,17 +128,21 @@ const RecommendedForYou = React.createClass( {
127128
render() {
128129
return (
129130
<Main className="recommended-for-you">
131+
<MobileBackToSidebar>
132+
<h1>{ this.translate( 'Recommendations' ) }</h1>
133+
</MobileBackToSidebar>
134+
130135
<h2 className="reader-recommended__heading">{ this.translate( 'We think you\'ll like' )}</h2>
131136
<InfiniteList
132-
items={ this.state.recommendations }
133-
fetchingNextPage={ this.state.fetching }
134-
lastPage={ this.state.recommendations && this.state.recommendations.length >= 100 }
135-
guessedItemHeight={ 300 }
136-
fetchNextPage={ this.loadMore }
137-
getItemRef={ this.getItemRef }
138-
renderItem={ this.renderItem }
139-
renderLoadingPlaceholders={ this.renderPlaceholders }
140-
/>
137+
items={ this.state.recommendations }
138+
fetchingNextPage={ this.state.fetching }
139+
lastPage={ this.state.recommendations && this.state.recommendations.length >= 100 }
140+
guessedItemHeight={ 300 }
141+
fetchNextPage={ this.loadMore }
142+
getItemRef={ this.getItemRef }
143+
renderItem={ this.renderItem }
144+
renderLoadingPlaceholders={ this.renderPlaceholders }
145+
/>
141146
</Main>
142147
);
143148
}

0 commit comments

Comments
 (0)
0