-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DIY/DIFM step to 100 year flow (#94996)
* Add DIY/DIFM step to 100 year flow * Change comments * Fix DIY flow going the wrong screen
- Loading branch information
1 parent
62a5d45
commit a7b46f5
Showing
3 changed files
with
78 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...epper/declarative-flow/internals/steps-repository/hundred-year-plan-diy-or-difm/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { Button } from '@wordpress/components'; | ||
import { useTranslate } from 'i18n-calypso'; | ||
import FormattedHeader from 'calypso/components/formatted-header'; | ||
import HundredYearPlanStepWrapper from '../hundred-year-plan-step-wrapper'; | ||
import type { Step } from '../../types'; | ||
|
||
import './styles.scss'; | ||
|
||
const HundredYearPlanDIYOrDIFM: Step = function HundredYearPlanDIYOrDIFM( { navigation, flow } ) { | ||
const { submit } = navigation; | ||
const translate = useTranslate(); | ||
|
||
return ( | ||
<HundredYearPlanStepWrapper | ||
stepContent={ | ||
<div> | ||
<Button onClick={ () => submit?.( { diyOrDifmChoice: 'difm' } ) }>Do it for me</Button> | ||
<Button onClick={ () => submit?.( { diyOrDifmChoice: 'diy' } ) }>Do it myself</Button> | ||
</div> | ||
} | ||
formattedHeader={ | ||
<FormattedHeader | ||
brandFont | ||
headerText={ translate( 'TODO: title' ) } | ||
subHeaderText={ translate( 'TODO: header' ) } | ||
subHeaderAlign="center" | ||
/> | ||
} | ||
stepName="hundred-year-plan-setup" | ||
flowName={ flow } | ||
/> | ||
); | ||
}; | ||
|
||
export default HundredYearPlanDIYOrDIFM; |
1 change: 1 addition & 0 deletions
1
...per/declarative-flow/internals/steps-repository/hundred-year-plan-diy-or-difm/styles.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* Comment because we cannot have empty files */ |