Commit 61716d2c authored by Valeriy Panov's avatar Valeriy Panov Committed by Andrey Lugovskiy
Browse files

#116 Remove steps 6 and 7 from dataset registration section.

parent fe48a392
Pipeline #3475 passed with stages
in 4 minutes and 11 seconds
......@@ -69,7 +69,7 @@ class StepNavigation extends React.Component<IStepNavigationProps, any> {
}
protected onNext = () => {
if (this.state.id === 8) {
if (this.state.id === 6) {
// ACCEPT AND PUBLISH
} else {
const path = steps.find((e) => e.id === this.state.id + 1).link;
......@@ -96,7 +96,7 @@ class StepNavigation extends React.Component<IStepNavigationProps, any> {
Return
</Button>
<Button raised onClick={ this.onNext } className={ classes.btnBlue }>
{ this.state.id === 8 ? 'ACCEPT AND PUBLISH' : 'NEXT STEP' }
{ this.state.id === 6 ? 'ACCEPT AND PUBLISH' : 'NEXT STEP' }
</Button>
</Grid>
{ bottomDivider && <Divider/> }
......
......@@ -44,8 +44,6 @@ export default(
<Route path="timing-and-location" component={ TimingAndLocationStep } />
<Route path="list-of-accessions" component={ AccessionsListStep } />
<Route path="traits-observed" component={ Traits } />
<Route path="environment" component={ NotFound } />
<Route path="treatments-and-experimental-design" component={ NotFound } />
<Route path="review-and-publish" component={ ReviewAndPublishStep } />
</Route>
{ /* Example how to hide/show route for anonymous and users */ }
......
......@@ -26,16 +26,6 @@ const steps = [
},
{
id: 6,
name: 'Environment',
link: 'environment',
},
{
id: 7,
name: 'Treatments and experimental design',
link: 'treatments-and-experimental-design',
},
{
id: 8,
name: 'Review and publish',
link: 'review-and-publish',
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment