Updates for Wilfred #84
3 changed files with 15 additions and 12 deletions
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"steps": {
|
"steps": {
|
||||||
"location": {
|
"location": {
|
||||||
"title": "Right Plant Right Place Plant Selector Tool for New Zealand.",
|
"title": "Right Plant Right Place Right Time\nPlant Selector Tool for New Zealand.",
|
||||||
"description": "Your native plant selection starts here! Use the map to select a planting site location within New Zealand. On the following pages you will provide more details on your project until the system has enough information to create your plant species list and planting plan. To start, click on the map and pan and zoom to the site location. Once the location is selected, click on the “next step” button to complete the process. Repeat this process for sites at different locations."
|
"description": "Your native plant selection starts here! Use the map to select a planting site location within New Zealand. On the following pages you will provide more details on your project until the system has enough information to create your plant species list and planting plan. To start, click on the map and pan and zoom to the site location. Once the location is selected, click on the “next step” button to complete the process. Repeat this process for sites at different locations."
|
||||||
},
|
},
|
||||||
"soil": {
|
"soil": {
|
||||||
|
|
|
@ -4,6 +4,7 @@ import Stepper from '@mui/material/Stepper';
|
||||||
import Step from '@mui/material/Step';
|
import Step from '@mui/material/Step';
|
||||||
import StepLabel from '@mui/material/StepLabel';
|
import StepLabel from '@mui/material/StepLabel';
|
||||||
import Button from '@mui/material/Button';
|
import Button from '@mui/material/Button';
|
||||||
|
import Tooltip from '@mui/material/Tooltip';
|
||||||
|
|
||||||
import LocationStep from './steps/location/LocationStep'
|
import LocationStep from './steps/location/LocationStep'
|
||||||
import SoilStep from './steps/soilvariant/SoilStep'
|
import SoilStep from './steps/soilvariant/SoilStep'
|
||||||
|
@ -13,12 +14,12 @@ import SummaryStep from './steps/summary/SummaryStep';
|
||||||
import ResultsStep from './steps/results/ResultsStep'
|
import ResultsStep from './steps/results/ResultsStep'
|
||||||
|
|
||||||
const steps = [
|
const steps = [
|
||||||
{ 'label': 'Select location', 'component': LocationStep },
|
{ 'label': 'Select location', 'component': LocationStep, 'tooltip': "Click on a location on the map" },
|
||||||
{ 'label': 'Choose soil', 'component': SoilStep },
|
{ 'label': 'Choose soil', 'component': SoilStep, 'tooltip': "Describe the moisture content of your soil" },
|
||||||
{ 'label': 'Choose habitat', 'component': HabitatStep },
|
{ 'label': 'Choose habitat', 'component': HabitatStep, 'tooltip': "Specify type of landscape to be planted" },
|
||||||
{ 'label': 'Select zone', 'component': ZoneStep },
|
{ 'label': 'Select zone', 'component': ZoneStep, 'tooltip': "Specify geographical detail" },
|
||||||
{ 'label': 'Summary', 'component': SummaryStep },
|
{ 'label': 'Summary', 'component': SummaryStep, 'tooltip': "Check your inputs" },
|
||||||
{ 'label': 'Results', 'component': ResultsStep }
|
{ 'label': 'Results', 'component': ResultsStep, 'tooltip': "List of plant species and user guide" }
|
||||||
];
|
];
|
||||||
|
|
||||||
export default function StepperWizard(props) {
|
export default function StepperWizard(props) {
|
||||||
|
@ -58,9 +59,11 @@ export default function StepperWizard(props) {
|
||||||
<Stepper activeStep={activeStep} sx={{ paddingRight: '3vw', paddingLeft: '3vw', marginBottom: '2vw' }}>
|
<Stepper activeStep={activeStep} sx={{ paddingRight: '3vw', paddingLeft: '3vw', marginBottom: '2vw' }}>
|
||||||
{steps.map((step) => {
|
{steps.map((step) => {
|
||||||
return (
|
return (
|
||||||
|
<Tooltip title={step.tooltip}>
|
||||||
<Step key={step.label}>
|
<Step key={step.label}>
|
||||||
<StepLabel>{step.label}</StepLabel>
|
<StepLabel>{step.label}</StepLabel>
|
||||||
</Step>
|
</Step>
|
||||||
|
</Tooltip>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</Stepper>
|
</Stepper>
|
||||||
|
|
|
@ -84,7 +84,7 @@ TablePaginationActions.propTypes = {
|
||||||
|
|
||||||
export default function PlantResultsTable(props) {
|
export default function PlantResultsTable(props) {
|
||||||
const [page, setPage] = React.useState(0);
|
const [page, setPage] = React.useState(0);
|
||||||
const [rowsPerPage, setRowsPerPage] = React.useState(5);
|
const [rowsPerPage, setRowsPerPage] = React.useState(25);
|
||||||
|
|
||||||
// Avoid a layout jump when reaching the last page with empty rows.
|
// Avoid a layout jump when reaching the last page with empty rows.
|
||||||
const emptyRows =
|
const emptyRows =
|
||||||
|
|
Loading…
Reference in a new issue