Skip to content

Commit

Permalink
Use isLink prop instead of variant to support older Gutenbergs.
Browse files Browse the repository at this point in the history
  • Loading branch information
roundhill committed Nov 1, 2021
1 parent 3003771 commit eefd566
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function TrackList( { tracks, onChange, guid } ) {
<span>{ track.label }</span>
<div className="videopress-block-tracks-editor__track-list-track-delete">
<Button
variant="link"
isLink
isDestructive
onClick={ () => {
onDeleteTrack( index );
Expand Down Expand Up @@ -228,7 +228,7 @@ function SingleTrackEditor( { track, onChange, onClose, onCancel, guid } ) {
render={ ( { openFileDialog } ) => {
return (
<Button
variant="link"
isLink
onClick={ () => {
openFileDialog();
} }
Expand Down Expand Up @@ -324,7 +324,7 @@ function SingleTrackEditor( { track, onChange, onClose, onCancel, guid } ) {
{ __( 'Save', 'jetpack' ) }
</Button>
) }
<Button variant="link" onClick={ onCancel }>
<Button isLink onClick={ onCancel }>
{ __( 'Close', 'jetpack' ) }
</Button>
</div>
Expand Down

0 comments on commit eefd566

Please sign in to comment.