diff --git a/components/Wizard/Wizard.jsx b/components/Wizard/Wizard.jsx index 709e91bad..08e499d6e 100644 --- a/components/Wizard/Wizard.jsx +++ b/components/Wizard/Wizard.jsx @@ -32,8 +32,8 @@ const Wizard = ({ type, vm, children, wrapperClass }) => { return (
- - + + {(type === ViewTypes.register) && ()} {(type === ViewTypes.pin) && ()} {(type === ViewTypes.welcome) && ()} diff --git a/components/Wizard/Wizard.scss b/components/Wizard/Wizard.scss index b8e2576de..888221648 100644 --- a/components/Wizard/Wizard.scss +++ b/components/Wizard/Wizard.scss @@ -6,7 +6,7 @@ width: 100%; display: flex; flex-direction: row; - justify-content: stretch; + justify-content: center; flex-wrap: wrap; font-family: "Roboto", Arial, Helvetica, sans-serif; min-height: 100vh; @@ -41,6 +41,10 @@ @include tablet { width : 23%; + + &.hide-left-progress { + display: none; + } } @media (max-width: 645px) { @@ -60,10 +64,18 @@ @include tablet { width : 77%; + + &.hide-left-progress { + width : 100%; + } } @media (max-width: 645px) { width: 60%; + + &.hide-left-progress { + width : 100%; + } } @include mobile { diff --git a/components/Wizard/WizardLeft/index.jsx b/components/Wizard/WizardLeft/index.jsx index 77e1e73c9..71b246ede 100644 --- a/components/Wizard/WizardLeft/index.jsx +++ b/components/Wizard/WizardLeft/index.jsx @@ -5,7 +5,7 @@ require('./style.scss') import { ViewTypes } from '../Wizard' import ConnectLogo from '../../Icons/ConnectLogoWhite' -const WizardLeft = ({type}) => { +const WizardLeft = ({type, vm}) => { const step1ContainerClass = cn({ selected: (type === ViewTypes.welcome) || (type === ViewTypes.register) || (type === ViewTypes.pin), 'bottom-line': true, step1: true, @@ -26,14 +26,14 @@ const WizardLeft = ({type}) => { flex: true, middle: true, center: true }) return ( -
+
-
+ {!vm.hideLeftProgress && (
CREATE A NEW PROJECT -
-
+
)} + {!vm.hideLeftProgress && (
1
Create account
@@ -50,7 +50,7 @@ const WizardLeft = ({type}) => {
4
Project submitted
-
+
)}
© 2018 Topcoder. All Rights Reserved
diff --git a/components/Wizard/WizardMiddle/index.jsx b/components/Wizard/WizardMiddle/index.jsx index f5db00735..5ffe4a204 100644 --- a/components/Wizard/WizardMiddle/index.jsx +++ b/components/Wizard/WizardMiddle/index.jsx @@ -2,9 +2,9 @@ import React from 'react' require('./style.scss') -const WizardMiddle = ({ children }) => { +const WizardMiddle = ({ children, vm }) => { return ( -
+
{children}
)