Skip to content

Commit ac80a29

Browse files
fix: update password placeholder prop (#242)
* changed placeholder prop * Add changeset --------- Co-authored-by: Andrew Smith <[email protected]>
1 parent a639626 commit ac80a29

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

.changeset/lemon-eyes-walk.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@supabase/auth-ui-svelte': patch
3+
'@supabase/auth-ui-react': patch
4+
'@supabase/auth-ui-solid': patch
5+
---
6+
7+
fix: update password placeholder prop

packages/react/src/components/Auth/interfaces/UpdatePassword.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function UpdatePassword({
4141
<Input
4242
id="password"
4343
name="password"
44-
placeholder={labels?.password_label}
44+
placeholder={labels?.password_input_placeholder}
4545
type="password"
4646
autoFocus
4747
onChange={(e: React.ChangeEvent<HTMLInputElement>) =>

packages/solid/src/components/Auth/interfaces/UpdatePassword.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ function UpdatePassword(props: {
4747
id="password"
4848
name="password"
4949
autofocus
50-
placeholder={props.i18n?.update_password?.password_label}
50+
placeholder={
51+
props.i18n?.update_password?.password_input_placeholder
52+
}
5153
type="password"
5254
onkeyup={(e) => setPassword(e.currentTarget.value)}
5355
appearance={props.appearance}

packages/svelte/src/lib/Auth/interfaces/UpdatePassword.svelte

+4-2
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,16 @@
4545
type="password"
4646
name="password"
4747
autofocus
48-
placeholder={i18n?.update_password?.password_label}
48+
placeholder={i18n?.update_password?.password_input_placeholder}
4949
bind:value={password}
5050
autocomplete="password"
5151
{appearance}
5252
/>
5353
</div>
5454
<Button type="submit" color="primary" {loading} {appearance}>
55-
{loading ? i18n?.update_password?.loading_button_label : i18n?.update_password?.button_label}
55+
{loading
56+
? i18n?.update_password?.loading_button_label
57+
: i18n?.update_password?.button_label}
5658
</Button>
5759
</Container>
5860

0 commit comments

Comments
 (0)