Skip to content

Commit

Permalink
Hide Interesting People for unauthenticated users
Browse files Browse the repository at this point in the history
  • Loading branch information
jm90m committed Oct 26, 2017
1 parent 3aa813a commit 510ac74
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/app/Sidebar/RightSidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,21 +87,29 @@ export default class RightSidebar extends React.Component {
render={() => (
<div>
{authenticatedUser.last_root_post === '1970-01-01T00:00:00' && <StartNow />}
<<<<<<< 3aa813af336a1228402490e4ca53a76fb88b6ca9
<InterestingPeople
users={this.props.recommendations}
onRefresh={this.handleInterestingPeopleRefresh}
/>
=======
{authenticated &&
<InterestingPeople
users={this.state.randomPeople}
onRefresh={this.handleRefreshInterestingPeople}
/>}
>>>>>>> Hide Interesting People for unauthenticated users
</div>
)}
/>
<Route
path="/@:name"
component={() => (
component={() =>
authenticated &&
<InterestingPeopleWithAPI
authenticatedUser={authenticatedUser}
authFetching={authFetching}
/>
)}
/>}
/>
</Switch>
{showPostRecommendation && <PostRecommendation isAuthFetching={authFetching} />}
Expand Down

0 comments on commit 510ac74

Please sign in to comment.