Skip to content

Commit 03bdcff

Browse files
authored
feat: Change Twitter to X (#1215)
1 parent d73d840 commit 03bdcff

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

src/account-settings/AccountSettingsPage.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -764,11 +764,11 @@ class AccountSettingsPage extends React.Component {
764764
{...editableFieldProps}
765765
/>
766766
<EditableField
767-
name="social_link_twitter"
767+
name="social_link_x"
768768
type="text"
769-
value={this.props.formValues.social_link_twitter}
770-
label={this.props.intl.formatMessage(messages['account.settings.field.social.platform.name.twitter'])}
771-
emptyLabel={this.props.intl.formatMessage(messages['account.settings.field.social.platform.name.twitter.empty'])}
769+
value={this.props.formValues.social_link_x}
770+
label={this.props.intl.formatMessage(messages['account.settings.field.social.platform.name.xTwitter'])}
771+
emptyLabel={this.props.intl.formatMessage(messages['account.settings.field.social.platform.name.xTwitter.empty'])}
772772
{...editableFieldProps}
773773
/>
774774
</div>
@@ -905,7 +905,7 @@ AccountSettingsPage.propTypes = {
905905
phone_number: PropTypes.string,
906906
social_link_linkedin: PropTypes.string,
907907
social_link_facebook: PropTypes.string,
908-
social_link_twitter: PropTypes.string,
908+
social_link_x: PropTypes.string,
909909
time_zone: PropTypes.string,
910910
state: PropTypes.string,
911911
useVerifiedNameForCerts: PropTypes.bool.isRequired,

src/account-settings/AccountSettingsPage.messages.jsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -509,15 +509,15 @@ const messages = defineMessages({
509509
defaultMessage: 'Delete My Account',
510510
description: 'Header for the user account deletion area',
511511
},
512-
'account.settings.field.social.platform.name.twitter': {
513-
id: 'account.settings.field.social.platform.name.twitter',
514-
defaultMessage: 'Twitter',
515-
description: 'Label for Twitter',
516-
},
517-
'account.settings.field.social.platform.name.twitter.empty': {
518-
id: 'account.settings.field.social.platform.name.twitter.empty',
519-
defaultMessage: 'Add Twitter profile',
520-
description: 'Placeholder for an empty Twitter field',
512+
'account.settings.field.social.platform.name.xTwitter': {
513+
id: 'account.settings.field.social.platform.name.xTwitter',
514+
defaultMessage: 'X (Twitter)',
515+
description: 'Label for X (Twitter)',
516+
},
517+
'account.settings.field.social.platform.name.xTwitter.empty': {
518+
id: 'account.settings.field.social.platform.name.xTwitter.empty',
519+
defaultMessage: 'Add X profile',
520+
description: 'Placeholder for an empty X field',
521521
},
522522

523523
'account.settings.field.social.platform.name.facebook': {

src/account-settings/data/service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { postVerifiedNameConfig } from '../certificate-preference/data/service';
1111
import { FIELD_LABELS } from './constants';
1212

1313
const SOCIAL_PLATFORMS = [
14-
{ id: 'twitter', key: 'social_link_twitter' },
14+
{ id: 'xTwitter', key: 'social_link_x' },
1515
{ id: 'facebook', key: 'social_link_facebook' },
1616
{ id: 'linkedin', key: 'social_link_linkedin' },
1717
];

0 commit comments

Comments
 (0)