Skip to content

Commit d1011c4

Browse files
committed
Merge branch '@invertase/v7-development' of https://github.com/firebase/firebaseui-web into @invertase/bb-17
2 parents 6c5d744 + 553675a commit d1011c4

File tree

2 files changed

+14
-27
lines changed

2 files changed

+14
-27
lines changed

packages/angular/src/lib/auth/forms/sign-up-auth-form.ts

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,36 +43,23 @@ import {
4343
],
4444
template: `
4545
<form (submit)="handleSubmit($event)" class="fui-form">
46-
<fieldset>
47-
<fui-form-input
48-
name="email"
49-
tanstack-app-field
50-
[tanstackField]="form"
51-
label="{{ emailLabel() }}"
52-
></fui-form-input>
53-
</fieldset>
54-
<fieldset>
55-
<fui-form-input
56-
name="password"
57-
tanstack-app-field
58-
[tanstackField]="form"
59-
label="{{ passwordLabel() }}"
60-
type="password"
61-
></fui-form-input>
62-
</fieldset>
6346
@if (requireDisplayNameField()) {
6447
<fieldset>
6548
<fui-form-input
6649
name="displayName"
6750
tanstack-app-field
6851
[tanstackField]="form"
6952
label="{{ displayNameLabel() }}"
70-
></fui-form-input>
53+
/>
7154
</fieldset>
7255
}
73-
56+
<fieldset>
57+
<fui-form-input name="email" tanstack-app-field [tanstackField]="form" label="{{ emailLabel() }}" />
58+
</fieldset>
59+
<fieldset>
60+
<fui-form-input name="password" tanstack-app-field [tanstackField]="form" label="{{ passwordLabel() }}" />
61+
</fieldset>
7462
<fui-policies />
75-
7663
<fieldset>
7764
<fui-form-submit [state]="state()">
7865
{{ createAccountLabel() }}

packages/react/src/auth/forms/sign-up-auth-form.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ export function SignUpAuthForm({ onBackToSignInClick, onSignUp }: SignUpAuthForm
9595
}}
9696
>
9797
<form.AppForm>
98+
{requireDisplayName ? (
99+
<fieldset>
100+
<form.AppField name="displayName">
101+
{(field) => <field.Input label={getTranslation(ui, "labels", "displayName")} />}
102+
</form.AppField>
103+
</fieldset>
104+
) : null}
98105
<fieldset>
99106
<form.AppField name="email">
100107
{(field) => <field.Input label={getTranslation(ui, "labels", "emailAddress")} type="email" />}
@@ -105,13 +112,6 @@ export function SignUpAuthForm({ onBackToSignInClick, onSignUp }: SignUpAuthForm
105112
{(field) => <field.Input label={getTranslation(ui, "labels", "password")} type="password" />}
106113
</form.AppField>
107114
</fieldset>
108-
{requireDisplayName ? (
109-
<fieldset>
110-
<form.AppField name="displayName">
111-
{(field) => <field.Input label={getTranslation(ui, "labels", "displayName")} />}
112-
</form.AppField>
113-
</fieldset>
114-
) : null}
115115
<Policies />
116116
<fieldset>
117117
<form.SubmitButton>{getTranslation(ui, "labels", "createAccount")}</form.SubmitButton>

0 commit comments

Comments
 (0)