Skip to content

Commit

Permalink
Simpler, consistent common commands
Browse files Browse the repository at this point in the history
  • Loading branch information
richtabor committed Aug 9, 2023
1 parent e540a5c commit 9f3de64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/edit-post/src/components/keyboard-shortcuts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ function KeyboardShortcuts() {
toggleFeature( 'distractionFree' );
createInfoNotice(
isFeatureActive( 'distractionFree' )
? __( 'Distraction free mode turned on.' )
: __( 'Distraction free mode turned off.' ),
? __( 'Distraction free on.' )
: __( 'Distraction free off.' ),
{
id: 'core/edit-post/distraction-free-mode/notice',
type: 'snackbar',
Expand Down
8 changes: 4 additions & 4 deletions packages/edit-post/src/hooks/commands/use-common-commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export default function useCommonCommands() {

useCommand( {
name: 'core/open-preferences',
label: __( 'Open editor preferences' ),
label: __( 'Editor preferences' ),
icon: cog,
callback: () => {
openModal( PREFERENCES_MODAL_NAME );
Expand All @@ -160,7 +160,7 @@ export default function useCommonCommands() {

useCommand( {
name: 'core/open-shortcut-help',
label: __( 'Open keyboard shortcuts' ),
label: __( 'Keyboard shortcuts' ),
icon: keyboard,
callback: () => {
openModal( KEYBOARD_SHORTCUT_HELP_MODAL_NAME );
Expand All @@ -178,8 +178,8 @@ export default function useCommonCommands() {
close();
createInfoNotice(
showBlockBreadcrumbs
? __( 'Breadcrumbs off.' )
: __( 'Breadcrumbs on.' ),
? __( 'Breadcrumbs hidden.' )
: __( 'Breadcrumbs visible.' ),
{
id: 'core/edit-post/toggle-breadcrumbs/notice',
type: 'snackbar',
Expand Down

0 comments on commit 9f3de64

Please sign in to comment.