Make step content scrollable overflow adjust results step

- Results step is now the last step but doesn't restrict the user from going back
This commit is contained in:
Dana Lambert 2021-11-02 11:11:55 +13:00
parent 039d8d14ec
commit 8638fd3041
4 changed files with 57 additions and 58 deletions

View file

@ -1,19 +0,0 @@
import Step from './Step';
import { ListGroup, ListGroupItem } from 'reactstrap';
export default function Results(props) {
const stepContent = (
<div>
<h5 className="pt-4">Plant List</h5>
<ListGroup>
{props.plants.map(function (plant, i) {
return <ListGroupItem key={i} >{plant.name}</ListGroupItem>;
})}
</ListGroup>
</div>
)
return (
<Step contentComponent={stepContent} />
)
}

View file

@ -0,0 +1,21 @@
import Step from '../Step';
import { ListGroup, ListGroupItem } from 'reactstrap';
export default function ResultsStep(props) {
const stepContent = (
<div>
<h5 className="pt-4">Plant List</h5>
<div>
<ListGroup>
{props.plants.map(function (plant, i) {
return <ListGroupItem key={i} >{plant.name}</ListGroupItem>;
})}
</ListGroup>
</div>
</div>
)
return (
<Step contentComponent={stepContent} />
)
}