Skip to content

Commit

Permalink
display appropriate buttons depending on current step
Browse files Browse the repository at this point in the history
  • Loading branch information
SimeJadrijev committed Feb 2, 2025
1 parent 8a78844 commit 9df8ea5
Showing 1 changed file with 24 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,23 +100,34 @@ export const GeneralRegistrationForm = () => {
/>
)}

{/* TODO: Postaviti treći i četvrti korak */}
{/* TODO: Postaviti treći korak */}
{currentStep === RegistrationStep.THREE && <div>Treći korak</div>}
{currentStep === RegistrationStep.FOUR && <FourthStepRegistrationForm />}

<div className={c.buttonsWrapper}>
<Button
type='submit'
variant='orange'
children='Registriraj se'
onClick={handleRegistrationClick}
/>
<Button
type='submit'
variant='black'
children='Nastavi s Google'
icon={googleIcon}
/>
{currentStep === RegistrationStep.FOUR ? (
<Button
type='submit'
variant='orange'
children='Spremi'
onClick={handleRegistrationClick}
/>
) : (
<>
<Button
type='submit'
variant='orange'
children='Registriraj se'
onClick={handleRegistrationClick}
/>
<Button
type='submit'
variant='black'
children='Nastavi s Google'
icon={googleIcon}
/>
</>
)}
</div>

<AuthFooter leftMessage='Već imaš račun?' rightMessage='Prijavi se' />
Expand Down

0 comments on commit 9df8ea5

Please sign in to comment.