Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "show template" to preview dropdown. #66514

Merged
merged 8 commits into from
Nov 5, 2024
Prev Previous commit
Next Next commit
Fix back button erroneously showing
  • Loading branch information
tellthemachines committed Nov 5, 2024
commit e4bef127c08e65736a4277ff3aa50f3fac3f97fc
12 changes: 6 additions & 6 deletions packages/editor/src/components/document-bar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,13 @@ export default function DocumentBar( props ) {
{ __( 'Back' ) }
</MotionButton>
) }
{ ! isTemplate && isTemplatePreview && (
<BlockIcon
icon={ layout }
className="editor-document-bar__icon-layout"
/>
) }
</AnimatePresence>
{ ! isTemplate && isTemplatePreview && (
<BlockIcon
icon={ layout }
className="editor-document-bar__icon-layout"
/>
) }
{ isNotFound ? (
<Text>{ __( 'Document not found' ) }</Text>
) : (
Expand Down
Loading