Skip to content

Commit

Permalink
declaring const instead of let for demo var
Browse files Browse the repository at this point in the history
  • Loading branch information
sperry94 committed Apr 6, 2019
1 parent 8cedcf1 commit b8ac1b9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ function HorizontalNonLinearAlternativeLabelStepper() {
}

function handleNext() {
let newActiveStep;

newActiveStep =
const newActiveStep =
isLastStep() && !allStepsCompleted()
? // It's the last step, but not all steps have been completed
// find the first step that has been completed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ function HorizontalNonLinearAlternativeLabelStepper() {
}

function handleNext() {
let newActiveStep;

newActiveStep =
const newActiveStep =
isLastStep() && !allStepsCompleted()
? // It's the last step, but not all steps have been completed
// find the first step that has been completed
Expand Down
4 changes: 1 addition & 3 deletions docs/src/pages/demos/steppers/HorizontalNonLinearStepper.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ function HorizontalNonLinearStepper() {
}

function handleNext() {
let newActiveStep;

newActiveStep =
const newActiveStep =
isLastStep() && !allStepsCompleted()
? // It's the last step, but not all steps have been completed,
// find the first step that has been completed
Expand Down
4 changes: 1 addition & 3 deletions docs/src/pages/demos/steppers/HorizontalNonLinearStepper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ function HorizontalNonLinearStepper() {
}

function handleNext() {
let newActiveStep;

newActiveStep =
const newActiveStep =
isLastStep() && !allStepsCompleted()
? // It's the last step, but not all steps have been completed,
// find the first step that has been completed
Expand Down

0 comments on commit b8ac1b9

Please sign in to comment.