Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
add hide prop to profile popover from the at_mention component (#2506)
Browse files Browse the repository at this point in the history
  • Loading branch information
mickmister authored and deanwhillier committed Mar 20, 2019
1 parent 320995d commit 38b9bd9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions components/at_mention/__snapshots__/at_mention.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ exports[`components/AtMention should match snapshot when mentioning current user
>
<Connect(InjectIntl(ProfilePopover))
hasMention={false}
hide={[Function]}
isRHS={false}
src="/api/v4/users/abc1/image"
userId="abc1"
Expand All @@ -48,6 +49,7 @@ exports[`components/AtMention should match snapshot when mentioning user 1`] = `
>
<Connect(InjectIntl(ProfilePopover))
hasMention={false}
hide={[Function]}
isRHS={false}
src="/api/v4/users/abc2/image"
userId="abc2"
Expand All @@ -73,6 +75,7 @@ exports[`components/AtMention should match snapshot when mentioning user contain
>
<Connect(InjectIntl(ProfilePopover))
hasMention={false}
hide={[Function]}
isRHS={false}
src="/api/v4/users/abc3/image"
userId="abc3"
Expand All @@ -99,6 +102,7 @@ exports[`components/AtMention should match snapshot when mentioning user contain
>
<Connect(InjectIntl(ProfilePopover))
hasMention={false}
hide={[Function]}
isRHS={false}
src="/api/v4/users/abc3/image"
userId="abc3"
Expand All @@ -124,6 +128,7 @@ exports[`components/AtMention should match snapshot when mentioning user followe
>
<Connect(InjectIntl(ProfilePopover))
hasMention={false}
hide={[Function]}
isRHS={false}
src="/api/v4/users/abc2/image"
userId="abc2"
Expand All @@ -150,6 +155,7 @@ exports[`components/AtMention should match snapshot when mentioning user with di
>
<Connect(InjectIntl(ProfilePopover))
hasMention={false}
hide={[Function]}
isRHS={false}
src="/api/v4/users/abc2/image"
userId="abc2"
Expand All @@ -175,6 +181,7 @@ exports[`components/AtMention should match snapshot when mentioning user with mi
>
<Connect(InjectIntl(ProfilePopover))
hasMention={false}
hide={[Function]}
isRHS={false}
src="/api/v4/users/abc2/image"
userId="abc2"
Expand Down
1 change: 1 addition & 0 deletions components/at_mention/at_mention.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export default class AtMention extends React.PureComponent {
src={Client4.getProfilePictureUrl(user.id, user.last_picture_update)}
isRHS={this.props.isRHS}
hasMention={this.props.hasMention}
hide={this.hideOverlay}
/>
</Overlay>
<a
Expand Down

0 comments on commit 38b9bd9

Please sign in to comment.