Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
chevronLeftSmall as chevronLeftSmallIcon,
page as pageIcon,
navigation as navigationIcon,
symbol,
} from '@wordpress/icons';
import { displayShortcut } from '@wordpress/keycodes';
import { useState, useEffect, useRef } from '@wordpress/element';
Expand Down Expand Up @@ -118,10 +119,17 @@ function TemplateDocumentActions( { className, onBack } ) {

const entityLabel = getEntityLabel( record.type );

let typeIcon = icon;
if ( record.type === 'wp_navigation' ) {
typeIcon = navigationIcon;
} else if ( record.type === 'wp_block' ) {
typeIcon = symbol;
}

return (
<BaseDocumentActions
className={ className }
icon={ record.type === 'wp_navigation' ? navigationIcon : icon }
icon={ typeIcon }
onBack={ onBack }
>
<VisuallyHidden as="span">
Expand Down