Skip to content

Commit

Permalink
chore: remove "replace listing" functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoo committed Oct 26, 2020
1 parent b92cd2d commit 2962fc4
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/blocks/listing/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,7 @@ const ListingEditorComponent = ( {
return (
<div className="newspack-listings__listing-search">
<QueryControls
label={
isEditingPost && post && post.title
? __( 'Select a new listing to replace “', 'newspack-listings' ) + post.title + '”'
: __( 'Select a listing.', 'newspack-listings' )
}
label={ isEditingPost && __( 'Select a listing.', 'newspack-listings' ) }
listingType={ listingType }
maxLength={ 1 }
onChange={ _listing => {
Expand Down Expand Up @@ -142,11 +138,6 @@ const ListingEditorComponent = ( {
return (
<Fragment>
<Listing attributes={ parent.curatedList.attributes } error={ error } post={ post } />
{
<Button isSecondary onClick={ () => setIsEditingPost( true ) }>
{ __( 'Replace listing', 'newspack-listing' ) }
</Button>
}
{ post && (
<Button
isLink
Expand Down

0 comments on commit 2962fc4

Please sign in to comment.