diff --git a/src/projects/create/components/FillProjectDetails.js b/src/projects/create/components/FillProjectDetails.js index 92583858f..1d39f2931 100644 --- a/src/projects/create/components/FillProjectDetails.js +++ b/src/projects/create/components/FillProjectDetails.js @@ -68,6 +68,7 @@ class FillProjectDetails extends Component { template={template} currentWizardStep={currentWizardStep} project={dirtyProject} + hidePrice={template.hidePrice} /> ) } diff --git a/src/projects/create/components/HeaderWithProgress.js b/src/projects/create/components/HeaderWithProgress.js index f70292b60..672321303 100644 --- a/src/projects/create/components/HeaderWithProgress.js +++ b/src/projects/create/components/HeaderWithProgress.js @@ -9,19 +9,20 @@ import './HeaderWithProgress.scss' const numberWithCommas = (n) => n.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',') -function HeaderWithProgress({project, template, currentWizardStep}) { +function HeaderWithProgress({project, template, currentWizardStep, hidePrice}) { const flatProject = flatten(removeValuesOfHiddenNodes(template, project), { safe: true }) const { priceEstimate } = getProductEstimate({scope: template}, flatProject) const progress = currentWizardStep ? getWizardProgress(template, currentWizardStep) : 0 const currentStep = template.sections[(currentWizardStep || {}).sectionIndex || 0] - return (

{currentStep.title}

-
From ${numberWithCommas(priceEstimate)}
+ { !hidePrice ? +
From ${numberWithCommas(priceEstimate)}
: '' + }
@@ -35,6 +36,7 @@ HeaderWithProgress.propTypes = { project: PT.object.isRequired, template: PT.object.isRequired, currentWizardStep: PT.object, + hidePrice: PT.bool, } export default HeaderWithProgress