mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-02 00:07:56 +01:00
Gate settings profile QR code button on having a username
Co-authored-by: yash-signal <yash@signal.org>
This commit is contained in:
@@ -2409,19 +2409,21 @@ export function Preferences({
|
||||
{i18n('icu:ProfileEditor__open')}
|
||||
</span>
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
className="Preferences__profile-chip__qr-icon-button"
|
||||
aria-label={i18n('icu:ProfileEditor__username-link__open')}
|
||||
onClick={() => {
|
||||
setSettingsLocation({
|
||||
page: SettingsPage.Profile,
|
||||
state: ProfileEditorPage.UsernameLink,
|
||||
});
|
||||
}}
|
||||
>
|
||||
<div className="Preferences__profile-chip__qr-icon" />
|
||||
</button>
|
||||
{me.username && (
|
||||
<button
|
||||
type="button"
|
||||
className="Preferences__profile-chip__qr-icon-button"
|
||||
aria-label={i18n('icu:ProfileEditor__username-link__open')}
|
||||
onClick={() => {
|
||||
setSettingsLocation({
|
||||
page: SettingsPage.Profile,
|
||||
state: ProfileEditorPage.UsernameLink,
|
||||
});
|
||||
}}
|
||||
>
|
||||
<div className="Preferences__profile-chip__qr-icon" />
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
|
||||
Reference in New Issue
Block a user