Skip to content

Commit

Permalink
changes post trunk update
Browse files Browse the repository at this point in the history
  • Loading branch information
girish-lokapure committed Sep 27, 2023
1 parent f02e4bf commit d89419a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/OnboardingSPA/chapters/design.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { CHAPTER_DESIGN } from '../../constants';
import { stepDesignColors } from '../steps/DesignColors/step';
import { stepDesignThemeStylesMenu } from '../steps/DesignThemeStyles/Menu/step.js';
import { stepDesignThemeStylesPreview } from '../steps/DesignThemeStyles/Preview/step';
import { stepDesignTypography } from '../steps/DesignTypography/step';
import { stepDesignFonts } from '../steps/DesignFonts/step';
import { Chapter } from '../data/models/Chapter';
import { layoutContent } from './layoutContent';
import { Step } from '../data/models/Step';
Expand All @@ -20,7 +20,7 @@ const interstitialStep = new Step( {

const steps = [ stepDesignThemeStylesMenu, stepDesignThemeStylesPreview ];

const conditionalSteps = [ stepDesignColors, stepDesignTypography ];
const conditionalSteps = [ stepDesignColors, stepDesignFonts ];

const initialSteps = filter(
[ ...steps, ...conditionalSteps, ...layoutContent.steps ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const LearnMore = () => {

const content = getContents( techSupportLink, fullServiceCreativeTeamLink );
return (
<div className="nfd-onboarding-sidebar-learn-more__design-typography">
<div className="nfd-onboarding-sidebar-learn-more__design-fonts">
<StepIntroPanel
heading={ content.introduction.heading }
subheading={ content.introduction.subheading }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { lazy } from '@wordpress/element';
import { __ } from '@wordpress/i18n';
import { Step } from '../../data/models/Step';
import { typography } from '@wordpress/icons';
import { typography as fonts } from '@wordpress/icons';
import LearnMore from './Sidebar/LearnMore';
import { VIEW_DESIGN_TYPOGRAPHY } from '../../../constants';
import { VIEW_DESIGN_FONTS } from '../../../constants';

const StepDesignTypography = lazy( () => import( './index' ) );
const StepDesignFonts = lazy( () => import( './index' ) );

export const stepDesignTypography = new Step( {
export const stepDesignFonts = new Step( {
path: '/wp-setup/step/design/typography',
title: __( 'Typography', 'wp-module-onboarding' ),
Component: StepDesignTypography,
icon: typography,
drawerView: VIEW_DESIGN_TYPOGRAPHY,
title: __( 'Fonts', 'wp-module-onboarding' ),
Component: StepDesignFonts,
icon: fonts,
drawerView: VIEW_DESIGN_FONTS,
sidebars: {
LearnMore: {
SidebarComponents: [ LearnMore ],
Expand Down

0 comments on commit d89419a

Please sign in to comment.