Skip to content

Commit

Permalink
Fix comment capitalization/punctuation. (#23912)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZebulanStanphill authored Jul 14, 2020
1 parent 1216ad4 commit 15009bb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function BlockTypesTab( {
}, [ filteredItems, categories ] );

const itemsPerCollection = useMemo( () => {
// Create a new Object to avoid mutating collection
// Create a new Object to avoid mutating collection.
const result = { ...collections };
Object.keys( collections ).forEach( ( namespace ) => {
result[ namespace ] = filteredItems.filter(
Expand All @@ -106,10 +106,10 @@ export function BlockTypesTab( {
return result;
}, [ filteredItems, collections ] );

// hide block preview on unmount
// Hide block preview on unmount.
useEffect( () => () => onHover( null ), [] );

// Announce search results on change
// Announce search results on change.
useEffect( () => {
const resultsFoundMessage = sprintf(
/* translators: %d: number of results. */
Expand Down

0 comments on commit 15009bb

Please sign in to comment.