Skip to content

Commit

Permalink
wizard: improve readability
Browse files Browse the repository at this point in the history
Reorder the wizard steps so that the declarations follow the same order
as the UI.
  • Loading branch information
jkozol committed Jul 13, 2020
1 parent a6ed803 commit 42248fc
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions components/Wizard/CreateImageUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,11 @@ class CreateImageUploadModal extends React.Component {
),
};

const awsUploadStep = {
name: "Upload to AWS",
steps: [awsUploadAuth, awsUploadDest],
};

const azureUploadAuth = {
name: "Authentication",
component: (
Expand All @@ -382,6 +387,11 @@ class CreateImageUploadModal extends React.Component {
),
};

const azureUploadStep = {
name: "Upload to Azure",
steps: [azureUploadAuth, azureUploadDest],
};

const reviewStep = {
name: "Review",
component: (
Expand All @@ -398,16 +408,6 @@ class CreateImageUploadModal extends React.Component {
),
};

const awsUploadStep = {
name: "Upload to AWS",
steps: [awsUploadAuth, awsUploadDest],
};

const azureUploadStep = {
name: "Upload to Azure",
steps: [azureUploadAuth, azureUploadDest],
};

const steps = [
imageStep,
...(showUploadAwsStep ? [awsUploadStep] : []),
Expand Down

0 comments on commit 42248fc

Please sign in to comment.