Changeset View
Changeset View
Standalone View
Standalone View
native/profile/relationship-list-item.react.js
Show First 20 Lines • Show All 187 Lines • ▼ Show 20 Lines | return ( | ||||
</SingleLine> | </SingleLine> | ||||
{editButton} | {editButton} | ||||
</View> | </View> | ||||
</View> | </View> | ||||
); | ); | ||||
} | } | ||||
onSelect = () => { | onSelect = () => { | ||||
const { id, username, avatar } = this.props.userInfo; | const { id, username } = this.props.userInfo; | ||||
this.props.onSelect({ id, username, avatar }); | this.props.onSelect({ id, username }); | ||||
}; | }; | ||||
visibleEntryIDs() { | visibleEntryIDs() { | ||||
const { relationshipListRoute } = this.props; | const { relationshipListRoute } = this.props; | ||||
const id = { | const id = { | ||||
[FriendListRouteName]: 'unfriend', | [FriendListRouteName]: 'unfriend', | ||||
[BlockListRouteName]: 'unblock', | [BlockListRouteName]: 'unblock', | ||||
}[relationshipListRoute.name]; | }[relationshipListRoute.name]; | ||||
▲ Show 20 Lines • Show All 155 Lines • Show Last 20 Lines |