Skip to content

Commit

Permalink
Show block appender by default (#23676)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel authored Jul 7, 2020
1 parent 6156812 commit 4632aac
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ import { useState } from '@wordpress/element';
import { __ } from '@wordpress/i18n';

export default function NavigationStructureArea( { blocks, initialOpen } ) {
const [ selectedBlockId, setSelectedBlockId ] = useState( null );
const [ selectedBlockId, setSelectedBlockId ] = useState(
blocks[ 0 ]?.clientId
);
const isSmallScreen = useViewportMatch( 'medium', '<' );
const showNavigationStructure = !! blocks.length;

Expand Down

0 comments on commit 4632aac

Please sign in to comment.