Skip to content

Commit

Permalink
Use availableAlignments instead of hard coded array
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Oct 25, 2022
1 parent f3fce3d commit 5f18fb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-editor/src/hooks/align.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ export function AlignmentVisualizer( {
);

const alignments = useMemo( () => {
return [ 'none', 'wide', 'full' ]
.map( ( name ) => {
return availableAlignments
.map( ( { name } ) => {
if ( name === 'none' ) {
return {
name,
Expand Down

0 comments on commit 5f18fb1

Please sign in to comment.