Make whole username clickable in UsernameLinkModalBody
This commit is contained in:
parent
2dd2de4d0f
commit
317138d545
2 changed files with 28 additions and 18 deletions
|
@ -808,15 +808,21 @@ export function UsernameLinkModalBody({
|
|||
>
|
||||
<div className={`${CLASS}__card__qr`}>{linkImage}</div>
|
||||
<div className={`${CLASS}__card__username`}>
|
||||
{!showColors && (
|
||||
{showColors ? (
|
||||
<div className={`${CLASS}__card__username__text`}>{username}</div>
|
||||
) : (
|
||||
<button
|
||||
className={classnames(`${CLASS}__card__username__copy`)}
|
||||
className={`${CLASS}__card__username__copy__button`}
|
||||
type="button"
|
||||
onClick={onCopyUsername}
|
||||
aria-label={i18n('icu:UsernameLinkModalBody__copy')}
|
||||
/>
|
||||
>
|
||||
<i />
|
||||
<div className={`${CLASS}__card__username__text`}>
|
||||
{username}
|
||||
</div>
|
||||
</button>
|
||||
)}
|
||||
<div className={`${CLASS}__card__username__text`}>{username}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue