From 61716d2ce7d0a9dda23fbcfe1c26e6500b9355e0 Mon Sep 17 00:00:00 2001 From: Valeriy Panov Date: Thu, 7 Dec 2017 19:46:13 +0200 Subject: [PATCH] #116 Remove steps 6 and 7 from dataset registration section. --- .../pages/dataset/dataset-stepper/StepNavigation.tsx | 4 ++-- assets/components/routes.tsx | 2 -- assets/data/Steps.ts | 10 ---------- 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/assets/components/pages/dataset/dataset-stepper/StepNavigation.tsx b/assets/components/pages/dataset/dataset-stepper/StepNavigation.tsx index ee908a2..1530ace 100644 --- a/assets/components/pages/dataset/dataset-stepper/StepNavigation.tsx +++ b/assets/components/pages/dataset/dataset-stepper/StepNavigation.tsx @@ -69,7 +69,7 @@ class StepNavigation extends React.Component { } 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 { Return { bottomDivider && } diff --git a/assets/components/routes.tsx b/assets/components/routes.tsx index 7780a9e..b6884b6 100644 --- a/assets/components/routes.tsx +++ b/assets/components/routes.tsx @@ -44,8 +44,6 @@ export default( - - { /* Example how to hide/show route for anonymous and users */ } diff --git a/assets/data/Steps.ts b/assets/data/Steps.ts index ec8e961..b20d0cd 100644 --- a/assets/data/Steps.ts +++ b/assets/data/Steps.ts @@ -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', }, -- GitLab