Add sample step components for the remaining steps with accompaning text

- rename step subfolders from <name>step to <name>
This commit is contained in:
Dana Lambert 2021-10-20 16:52:06 +13:00
parent 06e33d7ac6
commit 473cc9ca6e
14 changed files with 155 additions and 15 deletions

View file

@ -0,0 +1,12 @@
import { useEffect } from 'react';
export default function SummaryContent(props) {
useEffect(() => {
props.setNextDisabled(false);
});
return (
<h2>Summary Content</h2>
)
}

View file

@ -0,0 +1,21 @@
import Step from '../Step';
import SummaryContent from './SummaryContent'
import StepInformation from '../StepInformation';
import staticText from '../../../assets/data/staticText.json'
export default function SummaryStep(props) {
const summaryInfoPanel = (
<StepInformation
title={staticText.steps.summary.title}
description={<p>{staticText.steps.summary.description}</p>}
/>
)
const summaryContent = (
<SummaryContent {...props} />
)
return (
<Step informationComponent={summaryInfoPanel} selectionComponent={summaryContent} />
)
}