Skip to content
This repository has been archived by the owner on Apr 30, 2023. It is now read-only.

Cluster wizard steps #22

Merged
merged 2 commits into from
Feb 18, 2019

Conversation

jtomasek
Copy link
Member

Depends on #21

flofuchs
flofuchs previously approved these changes Feb 14, 2019
@honza honza added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 14, 2019
@jtomasek jtomasek removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 14, 2019
@jtomasek jtomasek mentioned this pull request Feb 14, 2019
import CreateClusterForm from './createCluster/CreateClusterForm';

const ClusterWizard: FC = (): JSX.Element => (
interface ClusterWizardProps {
currentStepIndex: number;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we still use a more concrete type to represent the wizard step?

E.g.:

enum WizardStep {
    One,
    Two
}

let step: WizardStep = WizardStep.One;

It gives you much nicer comparisons:

if (step === WizardStep.One) {
    
}

Instead of comparing against numbers.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Contributor

@honza honza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@lizsurette
Copy link

lizsurette commented Feb 16, 2019

@jtomasek Looking great so far! Hopefully the PatternFly HTML/CSS will land soon to pull from, I'm just noticing small tweaks needed like a bubble behind the numbers...

Implementation:
screen shot 2019-02-15 at 10 54 21 pm
Design:
screen shot 2019-02-15 at 10 54 06 pm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants