Skip to content

Commit

Permalink
ui: missing copy in password.tsx (#61)
Browse files Browse the repository at this point in the history
* ui: missing copy in password.tsx

- Added the "Continue" button copy
- Added a missing "Password" placeholder

* Create lemon-eggs-add.md

---------

Co-authored-by: Dax <mail@thdxr.com>
  • Loading branch information
mvanleest and thdxr authored Dec 13, 2024
1 parent 2b5f475 commit 41acdc2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/lemon-eggs-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@openauthjs/openauth": patch
---

ui: missing copy in password.tsx
11 changes: 6 additions & 5 deletions packages/openauth/src/ui/password.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const DEFAULT_COPY = {
input_password: "Password",
input_code: "Code",
input_repeat: "Repeat password",
button_continue: "Continue",
} satisfies {
[key in `error_${
| PasswordLoginError["type"]
Expand Down Expand Up @@ -73,10 +74,10 @@ export function PasswordUI(input: PasswordUIOptions) {
required
type="password"
name="password"
placeholder="Password"
placeholder={copy.register_prompt}
autoComplete="current-password"
/>
<button data-component="button">Continue</button>
<button data-component="button">{copy.button_continue}</button>
<div data-component="form-footer">
<span>
{copy.register_prompt}{" "}
Expand Down Expand Up @@ -142,7 +143,7 @@ export function PasswordUI(input: PasswordUIOptions) {
placeholder={copy.input_repeat}
autoComplete="new-password"
/>
<button data-component="button">Continue</button>
<button data-component="button">{copy.button_continue}</button>
<div data-component="form-footer">
<span>
{copy.login_prompt}{" "}
Expand All @@ -167,7 +168,7 @@ export function PasswordUI(input: PasswordUIOptions) {
placeholder={copy.input_code}
autoComplete="one-time-code"
/>
<button data-component="button">Continue</button>
<button data-component="button">{copy.button_continue}</button>
</>
)}
</form>
Expand Down Expand Up @@ -244,7 +245,7 @@ export function PasswordUI(input: PasswordUIOptions) {
/>
</>
)}
<button data-component="button">Continue</button>
<button data-component="button">{copy.button_continue}</button>
</form>
{state.type === "code" && (
<form method="post">
Expand Down

0 comments on commit 41acdc2

Please sign in to comment.