Skip to content

Commit

Permalink
Update wpcom-nux.js
Browse files Browse the repository at this point in the history
Showing all steps now. No filtering of nux pages.
  • Loading branch information
ramonjd committed Oct 29, 2020
1 parent fde7cb5 commit 5f7dda4
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,11 @@ function WpcomNux() {
}

/**
* This function returns a filtered collection of NUX slide data
* Function arguments can be extended to customize the slides for specific environments, e.g., Gutenboarding
* This function returns a collection of NUX slide data
*
* @param { boolean } isGutenboarding Whether the flow is Gutenboarding or not
* @returns { Array } a collection of <NuxPage /> props filtered by whether the flow is Gutenboarding or not
* @returns { Array } a collection of <NuxPage /> props
*/
function getWpcomNuxPages( isGutenboarding ) {
function getWpcomNuxPages() {
return [
{
heading: __( 'Welcome to your website', 'full-site-editing' ),
Expand Down Expand Up @@ -114,11 +112,9 @@ function getWpcomNuxPages( isGutenboarding ) {
'full-site-editing'
),
imgSrc: privateImage,
// @TODO: hide for sites that are already public
shouldHide: ! isGutenboarding,
alignBottom: true,
},
].filter( ( nuxPage ) => ! nuxPage.shouldHide );
];
}

function NuxPage( { alignBottom = false, heading, description, imgSrc } ) {
Expand Down

0 comments on commit 5f7dda4

Please sign in to comment.