-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Have
useNavigateToPreviousEntityRecord
rely on location state
- Loading branch information
Showing
7 changed files
with
25 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
packages/edit-site/src/components/site-editor-routes/template-item.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
/** | ||
* Internal dependencies | ||
*/ | ||
import { MaybeEditor } from '../maybe-editor'; | ||
import Editor from '../editor'; | ||
import SidebarNavigationScreenTemplatesBrowse from '../sidebar-navigation-screen-templates-browse'; | ||
|
||
export const templateItemRoute = { | ||
name: 'template-item', | ||
path: '/wp_template/*postId', | ||
areas: { | ||
sidebar: <SidebarNavigationScreenTemplatesBrowse backPath="/" />, | ||
mobile: <MaybeEditor />, | ||
preview: <MaybeEditor />, | ||
mobile: <Editor />, | ||
preview: <Editor />, | ||
}, | ||
}; |
6 changes: 3 additions & 3 deletions
6
packages/edit-site/src/components/site-editor-routes/template-part-item.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
/** | ||
* Internal dependencies | ||
*/ | ||
import { MaybeEditor } from '../maybe-editor'; | ||
import Editor from '../editor'; | ||
import SidebarNavigationScreenPatterns from '../sidebar-navigation-screen-patterns'; | ||
|
||
export const templatePartItemRoute = { | ||
name: 'template-part-item', | ||
path: '/wp_template_part/*postId', | ||
areas: { | ||
sidebar: <SidebarNavigationScreenPatterns backPath="/" />, | ||
mobile: <MaybeEditor />, | ||
preview: <MaybeEditor />, | ||
mobile: <Editor />, | ||
preview: <Editor />, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters