Skip to content

Commit

Permalink
Change panel title to Settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Mar 21, 2024
1 parent 6b08f40 commit f637158
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions packages/block-library/src/social-link/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
PanelRow,
TextControl,
} from '@wordpress/components';
import { __, sprintf } from '@wordpress/i18n';
import { __ } from '@wordpress/i18n';
import { keyboardReturn } from '@wordpress/icons';

/**
Expand Down Expand Up @@ -114,8 +114,7 @@ const SocialLinkEdit = ( {
const [ popoverAnchor, setPopoverAnchor ] = useState( null );

const IconComponent = getIconBySite( service );
const socialLinkName = getNameBySite( service );
const socialLinkLabel = label ? label : socialLinkName;
const socialLinkLabel = label ? label : getNameBySite( service );
const blockProps = useBlockProps( {
className: classes,
style: {
Expand All @@ -127,13 +126,7 @@ const SocialLinkEdit = ( {
return (
<>
<InspectorControls>
<PanelBody
title={ sprintf(
/* translators: %s: name of the social service. */
__( '%s link text' ),
socialLinkName
) }
>
<PanelBody title={ __( 'Settings' ) }>
<PanelRow>
<TextControl
__nextHasNoMarginBottom
Expand Down

0 comments on commit f637158

Please sign in to comment.