adjust steps

This commit is contained in:
c9s 2021-02-02 11:46:04 +08:00
parent 73762d9888
commit b33f08e9a0
3 changed files with 6 additions and 13 deletions

View File

@ -1,3 +0,0 @@
export default function ExchangeSessionReview() {
return <> </>;
}

View File

@ -1,4 +0,0 @@
export default function ExchangeSessionTest() {
return <> </>;
}

View File

@ -9,8 +9,6 @@ import Step from '@material-ui/core/Step';
import StepLabel from '@material-ui/core/StepLabel'; import StepLabel from '@material-ui/core/StepLabel';
import ExchangeSessionForm from "../../components/ExchangeSessionForm"; import ExchangeSessionForm from "../../components/ExchangeSessionForm";
import ExchangeSessionReview from "../../components/ExchangeSessionReview";
import ExchangeSessionTest from "../../components/ExchangeSessionTest";
import PlainLayout from '../../layouts/PlainLayout'; import PlainLayout from '../../layouts/PlainLayout';
@ -20,16 +18,18 @@ const useStyles = makeStyles((theme) => ({
}, },
})); }));
const steps = ['Add Exchange Session', 'Configure Strategy', 'Restart']; const steps = ['Configure Database', 'Add Exchange Session', 'Configure Strategy', 'Restart BBGO'];
function getStepContent(step) { function getStepContent(step) {
switch (step) { switch (step) {
case 0: case 0:
return <ExchangeSessionForm/>; return;
case 1: case 1:
return <ExchangeSessionReview/>; return <ExchangeSessionForm/>;
case 2: case 2:
return <ExchangeSessionTest/>; return;
case 3:
return;
default: default:
throw new Error('Unknown step'); throw new Error('Unknown step');
} }