Skip to content

Commit

Permalink
change header text 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 9df8ea5 commit f71762e
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,17 @@ export const GeneralRegistrationForm = () => {
return (
<div className={c.generalRegistrationForm}>
<div className={c.registrationUpper}>
<h2>Obavezni podatci</h2>
<h2>
{currentStep === RegistrationStep.ONE ||
currentStep === RegistrationStep.TWO
? 'Obavezni podatci'
: currentStep === RegistrationStep.THREE
? 'Odaberi svoju slavicu'
: currentStep === RegistrationStep.FOUR
? 'Odaberi svoje interese'
: ''}
</h2>

<ProgressBar
currentStep={currentStep}
setCurrentStep={setCurrentStep}
Expand Down

0 comments on commit f71762e

Please sign in to comment.