Skip to content

Commit

Permalink
Update strings
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines committed Dec 6, 2024
1 parent a5387c1 commit fc24088
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ import { SidebarNavigationItemGlobalStyles } from '../sidebar-navigation-screen-
import { unlock } from '../../lock-unlock';
import { store as editSiteStore } from '../../store';

export function MainSidebarNavigationContent() {
const isBlockBasedTheme = useSelect(
( select ) => select( coreStore ).getCurrentTheme()?.is_block_theme,
[]
);
export function MainSidebarNavigationContent( { isBlockBasedTheme } ) {
return (
<ItemGroup>
{ isBlockBasedTheme && (
Expand Down Expand Up @@ -82,6 +78,10 @@ export function MainSidebarNavigationContent() {
}

export default function SidebarNavigationScreenMain() {
const isBlockBasedTheme = useSelect(
( select ) => select( coreStore ).getCurrentTheme()?.is_block_theme,
[]
);
const { setEditorCanvasContainerView } = unlock(
useDispatch( editSiteStore )
);
Expand All @@ -95,10 +95,20 @@ export default function SidebarNavigationScreenMain() {
<SidebarNavigationScreen
isRoot
title={ __( 'Design' ) }
description={ __(
'Customize the appearance of your website using the block editor.'
) }
content={ <MainSidebarNavigationContent /> }
description={
isBlockBasedTheme
? __(
'Customize the appearance of your website using the block editor.'
)
: __(
'Explore block styles and patterns to refine your site'
)
}
content={
<MainSidebarNavigationContent
isBlockBasedTheme={ isBlockBasedTheme }
/>
}
/>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export const stylebookRoute = {
<SidebarNavigationScreen
title={ __( 'Styles' ) }
backPath="/"
description={ __( 'Theme style book.' ) }
description={ __(
`Preview your website's visual identity: colors, typography, and blocks.`
) }
/>
),
preview: <StyleBookPreview />,
Expand Down

0 comments on commit fc24088

Please sign in to comment.