Add description to device name field in settings page

This commit is contained in:
trevor-signal 2025-02-12 09:33:35 -05:00 committed by GitHub
parent 64c4976140
commit a02a111358
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 2 deletions

View file

@ -1674,6 +1674,10 @@
"messageformat": "Device Name",
"description": "The label in settings panel shown for the user-provided name for this desktop instance"
},
"icu:Preferences--device-name__description": {
"messageformat": "To change the name of this device, open Signal on your phone and navigate to Settings > Linked devices",
"description": "Shown in the Settings window below the read-only device name"
},
"icu:chooseDeviceName": {
"messageformat": "Choose this device's name",
"description": "The header shown on the 'choose device name' screen in the device linking process"

View file

@ -184,7 +184,6 @@
}
&__control {
align-items: center;
display: flex;
justify-content: space-between;
min-height: 48px;

View file

@ -538,7 +538,14 @@ export function Preferences({
right={phoneNumber}
/>
<Control
left={i18n('icu:Preferences--device-name')}
left={
<>
<div>{i18n('icu:Preferences--device-name')}</div>
<div className="Preferences__description">
{i18n('icu:Preferences--device-name__description')}
</div>
</>
}
right={deviceName}
/>
</SettingsRow>