Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Jan 3, 2024
1 parent 79b26a4 commit 5172ab7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions packages/block-library/src/audio/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function AudioEdit( {
className,
setAttributes,
onReplace,
isSelected: isSignleSelected,
isSelected: isSingleSelected,
insertBlocksAfter,
} ) {
const { id, autoplay, loop, preload, src } = attributes;
Expand Down Expand Up @@ -143,7 +143,7 @@ function AudioEdit( {

return (
<>
{ isSignleSelected && (
{ isSingleSelected && (
<BlockControls group="other">
<MediaReplaceFlow
mediaId={ id }
Expand Down Expand Up @@ -199,17 +199,17 @@ function AudioEdit( {
so the user clicking on it won't play the
file or change the position slider when the controls are enabled.
*/ }
<Disabled isDisabled={ ! isSignleSelected }>
<Disabled isDisabled={ ! isSingleSelected }>
<audio controls="controls" src={ src } />
</Disabled>
{ isTemporaryAudio && <Spinner /> }
<Caption
attributes={ attributes }
setAttributes={ setAttributes }
isSelected={ isSignleSelected }
isSelected={ isSingleSelected }
insertBlocksAfter={ insertBlocksAfter }
label={ __( 'Audio caption text' ) }
showToolbarButton={ isSignleSelected }
showToolbarButton={ isSingleSelected }
/>
</figure>
</>
Expand Down
10 changes: 5 additions & 5 deletions packages/block-library/src/video/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const ALLOWED_MEDIA_TYPES = [ 'video' ];
const VIDEO_POSTER_ALLOWED_MEDIA_TYPES = [ 'image' ];

function VideoEdit( {
isSelected: isSignleSelected,
isSelected: isSingleSelected,
attributes,
className,
setAttributes,
Expand Down Expand Up @@ -182,7 +182,7 @@ function VideoEdit( {

return (
<>
{ isSignleSelected && (
{ isSingleSelected && (
<>
<BlockControls>
<TracksEditor
Expand Down Expand Up @@ -268,7 +268,7 @@ function VideoEdit( {
so the user clicking on it won't play the
video when the controls are enabled.
*/ }
<Disabled isDisabled={ ! isSignleSelected }>
<Disabled isDisabled={ ! isSingleSelected }>
<video
controls={ controls }
poster={ poster }
Expand All @@ -282,10 +282,10 @@ function VideoEdit( {
<Caption
attributes={ attributes }
setAttributes={ setAttributes }
isSelected={ isSignleSelected }
isSelected={ isSingleSelected }
insertBlocksAfter={ insertBlocksAfter }
label={ __( 'Video caption text' ) }
showToolbarButton={ isSignleSelected }
showToolbarButton={ isSingleSelected }
/>
</figure>
</>
Expand Down

0 comments on commit 5172ab7

Please sign in to comment.