Profile: Style chat link as text (#1274)
This commit is contained in:
parent
e941f8493b
commit
5f00ef8ab6
@ -18,7 +18,6 @@ import { copyTextToClipboard } from '../../util/clipboard';
|
|||||||
import { formatPhoneNumberWithCode } from '../../util/phoneNumber';
|
import { formatPhoneNumberWithCode } from '../../util/phoneNumber';
|
||||||
import useLang from '../../hooks/useLang';
|
import useLang from '../../hooks/useLang';
|
||||||
|
|
||||||
import SafeLink from '../common/SafeLink';
|
|
||||||
import ListItem from '../ui/ListItem';
|
import ListItem from '../ui/ListItem';
|
||||||
import Switcher from '../ui/Switcher';
|
import Switcher from '../ui/Switcher';
|
||||||
|
|
||||||
@ -115,9 +114,7 @@ const ChatExtra: FC<OwnProps & StateProps & DispatchProps> = ({
|
|||||||
)}
|
)}
|
||||||
{(canInviteUsers || !username) && !!link.length && (
|
{(canInviteUsers || !username) && !!link.length && (
|
||||||
<ListItem icon="mention" multiline narrow ripple onClick={() => copy(link, lang('SetUrlPlaceholder'))}>
|
<ListItem icon="mention" multiline narrow ripple onClick={() => copy(link, lang('SetUrlPlaceholder'))}>
|
||||||
<div className="title">
|
<div className="title">{link}</div>
|
||||||
<SafeLink url={link} className="title" text={link} />
|
|
||||||
</div>
|
|
||||||
<span className="subtitle">{lang('SetUrlPlaceholder')}</span>
|
<span className="subtitle">{lang('SetUrlPlaceholder')}</span>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user