remove hint and swap email and name inputs

This commit is contained in:
dev.daminik00 2024-06-11 19:34:20 +02:00
parent b08dbc61e9
commit 321ed604e6
3 changed files with 14 additions and 14 deletions

View File

@ -118,12 +118,6 @@ function EmailEnterPage({
Enter your email Enter your email
</Title> </Title>
<p className={styles["not-share"]}>{t("we_dont_share")}</p> <p className={styles["not-share"]}>{t("we_dont_share")}</p>
<NameInput
value={name}
placeholder="Your name"
onValid={handleValidName}
onInvalid={() => setIsValidName(!isRequiredName)}
/>
<EmailInput <EmailInput
name="email" name="email"
value={email} value={email}
@ -131,6 +125,12 @@ function EmailEnterPage({
onValid={handleValidEmail} onValid={handleValidEmail}
onInvalid={() => setIsValidEmail(false)} onInvalid={() => setIsValidEmail(false)}
/> />
<NameInput
value={name}
placeholder="Your name"
onValid={handleValidName}
onInvalid={() => setIsValidName(!isRequiredName)}
/>
<Policy sizing="medium" className={styles.policy}> <Policy sizing="medium" className={styles.policy}>
{t("_continue_agree", { {t("_continue_agree", {
eulaLink: ( eulaLink: (

View File

@ -133,19 +133,19 @@ function EmailEnterPage({
Enter your email Enter your email
</Title> </Title>
<p className={styles["not-share"]}>{t("we_dont_share")}</p> <p className={styles["not-share"]}>{t("we_dont_share")}</p>
<EmailInput
name="email"
value={email}
placeholder={t("your_email")}
onValid={handleValidEmail}
onInvalid={() => setIsValidEmail(false)}
/>
<NameInput <NameInput
value={name} value={name}
placeholder="Your name" placeholder="Your name"
onValid={handleValidName} onValid={handleValidName}
onInvalid={() => setIsValidName(!isRequiredName)} onInvalid={() => setIsValidName(!isRequiredName)}
/> />
<EmailInput
name="email"
value={email}
placeholder={t("your_email")}
onValid={handleValidEmail}
onInvalid={() => setIsValidEmail(false)}
/>
<QuestionnaireGreenButton <QuestionnaireGreenButton
className={styles.button} className={styles.button}
onClick={handleClick} onClick={handleClick}

View File

@ -4,7 +4,7 @@ export default {
next: "Next", next: "Next",
date_of_birth: "What's your date of birth?", date_of_birth: "What's your date of birth?",
privacy_text: "By continuing, you agree to our <eulaLink> and <privacyLink>. Have a question? Reach our support team <clickHere>", privacy_text: "By continuing, you agree to our <eulaLink> and <privacyLink>. Have a question? Reach our support team <clickHere>",
eula: "Hint's EULA", eula: "EULA",
here: 'here', here: 'here',
privacy_notice: 'Privacy Notice', privacy_notice: 'Privacy Notice',
born_time_question: "What time were you born?", born_time_question: "What time were you born?",