mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 05:00:43 +10:00
Merge pull request #851 from sharetribe/fix-user-card-contact-link
Fix user card contact link
This commit is contained in:
commit
15f763c6c3
2 changed files with 3 additions and 1 deletions
|
|
@ -15,6 +15,8 @@ way to update this template, but currently, we follow a pattern:
|
|||
## Upcoming version
|
||||
* [fix] Improve slug creation (slashes were breaking rendering in some environments)
|
||||
[#850](https://github.com/sharetribe/flex-template-web/pull/850)
|
||||
* [fix] Anonymous user should see contact link on UserCard
|
||||
[#851](https://github.com/sharetribe/flex-template-web/pull/851)
|
||||
|
||||
## v1.0.0
|
||||
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ const UserCard = props => {
|
|||
[css.withBioMissingAbove]: !hasBio,
|
||||
});
|
||||
|
||||
const hideContact = !currentUser || isCurrentUser;
|
||||
const hideContact = currentUser && isCurrentUser;
|
||||
const separator = hideContact ? null : <span className={css.linkSeparator}>•</span>;
|
||||
const contact = hideContact ? null : (
|
||||
<InlineTextButton onClick={handleContactUserClick}>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue