Skip to content

Commit

Permalink
feat: fix UI review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed May 2, 2024
1 parent 9178b17 commit 045d01f
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 8 deletions.
8 changes: 5 additions & 3 deletions lib/build/passwordlessprebuiltui.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export function useChildProps(
setIsPhoneNumber: (isPhone) => {
if (isPhone && showPasswordField) {
setShowPasswordField(false);
setShowContinueWithPasswordlessLink(false);
}
setIsPhoneNumber(isPhone);
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const ContinueWithPasswordless: React.FC<{ continueWithPasswordlessClicked: () =
props.continueWithPasswordlessClicked();
}}
type="button"
label={"PWLESS_COMBO_CONTINUE_WITH_PASSWORDLESS"}
label={"PWLESS_COMBO_CONTINUE_WITH_PASSWORDLESS_BUTTON"}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const ContinueWithPasswordlessFooter: React.FC<{
return onContinueWithPasswordlessClick(email);
}
}}>
{t("PWLESS_COMBO_CONTINUE_WITH_PASSWORDLESS")}
{t("PWLESS_COMBO_CONTINUE_WITH_PASSWORDLESS_LINK")}
</a>
);
};
3 changes: 2 additions & 1 deletion lib/ts/recipe/passwordless/components/themes/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export const defaultTranslationsPasswordless = {
PWLESS_SIGN_IN_UP_SWITCH_TO_PHONE: "Use a Phone number",
PWLESS_SIGN_IN_UP_SWITCH_TO_EMAIL: "Use an Email",
PWLESS_SIGN_IN_UP_CONTINUE_BUTTON: "CONTINUE",
PWLESS_COMBO_CONTINUE_WITH_PASSWORDLESS: "Continue with passwordless",
PWLESS_COMBO_CONTINUE_WITH_PASSWORDLESS_LINK: "Continue with passwordless",
PWLESS_COMBO_CONTINUE_WITH_PASSWORDLESS_BUTTON: "CONTINUE WITH PASSWORDLESS",

PWLESS_COMBO_PASSWORD_LABEL: "Password",
PWLESS_COMBO_FORGOT_PW_LINK: "Forgot password?",
Expand Down
2 changes: 1 addition & 1 deletion stories/allrecipes.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const SignUpPasswordless: Story = {
// Assigns canvas to the component root element
const canvas = within(canvasElement);

const switcher = await canvas.findByText("Continue with passwordless");
const switcher = await canvas.findByText("CONTINUE WITH PASSWORDLESS");
await new Promise((res) => setTimeout(res, 100));
canvasElement;
await userEvent.click(switcher, { delay: 200 });
Expand Down

0 comments on commit 045d01f

Please sign in to comment.