File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import config from '@automattic/calypso-config' ;
22import { isEcommercePlan } from '@automattic/calypso-products' ;
33import page from '@automattic/calypso-router' ;
4+ import { Gridicon } from '@automattic/components' ;
45import { Badge } from '@automattic/ui' ;
56import { createInterpolateElement } from '@wordpress/element' ;
67import { __ , _x , sprintf } from '@wordpress/i18n' ;
@@ -660,7 +661,12 @@ class MasterbarLoggedIn extends Component {
660661 label : (
661662 < span className = "button wpcom-button" >
662663 { createInterpolateElement ( __ ( 'My <wpcomIcon /> WordPress.com Account' ) , {
663- wpcomIcon : this . wordpressIcon ( ) ,
664+ wpcomIcon :
665+ typeof this . wordpressIcon ( ) !== 'string' ? (
666+ this . wordpressIcon ( )
667+ ) : (
668+ < Gridicon icon = { this . wordpressIcon ( ) } size = { 24 } />
669+ ) ,
664670 } ) }
665671 </ span >
666672 ) ,
You can’t perform that action at this time.
0 commit comments