@@ -2,7 +2,7 @@ import React, { useState } from 'react';
22import PropTypes from 'prop-types' ;
33import { Alert } from '@openedx/paragon' ;
44import { connect } from 'react-redux' ;
5- import { faTwitter , faFacebook , faLinkedin } from '@fortawesome/free-brands-svg-icons' ;
5+ import { faXTwitter , faFacebook , faLinkedin } from '@fortawesome/free-brands-svg-icons' ;
66import { FormattedMessage } from '@edx/frontend-platform/i18n' ;
77import classNames from 'classnames' ;
88
@@ -19,9 +19,9 @@ const platformDisplayInfo = {
1919 icon : faFacebook ,
2020 name : 'Facebook' ,
2121 } ,
22- twitter : {
23- icon : faTwitter ,
24- name : 'X' ,
22+ x : {
23+ icon : faXTwitter ,
24+ name : 'X (Twitter) ' ,
2525 } ,
2626 linkedin : {
2727 icon : faLinkedin ,
@@ -46,7 +46,7 @@ const SocialLinks = ({
4646 const [ activePlatform , setActivePlatform ] = useState ( null ) ;
4747
4848 const mergeWithDrafts = ( newSocialLink ) => {
49- const knownPlatforms = [ 'twitter ' , 'facebook' , 'linkedin' ] ;
49+ const knownPlatforms = [ 'x ' , 'facebook' , 'linkedin' ] ;
5050 const updated = [ ] ;
5151 knownPlatforms . forEach ( ( platform ) => {
5252 if ( newSocialLink . platform === platform ) {
@@ -164,7 +164,7 @@ const SocialLinks = ({
164164 values = { {
165165 network : platformDisplayInfo [ platform ] . name ,
166166 } }
167- description = "{network} is the name of a social network such as Facebook or Twitter "
167+ description = "{network} is the name of a social network such as Facebook or X "
168168 />
169169 </ EmptyContent >
170170 </ div >
0 commit comments