Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sveltekit): update server-side "SignIn" and "SignOut" button components #10144

Merged
merged 2 commits into from
Feb 28, 2024

Conversation

ndom91
Copy link
Member

@ndom91 ndom91 commented Feb 27, 2024

☕️ Reasoning

  • Update SignOut button slot to match SignIn button's, named submitButton
  • Make SignIn button's prop provider optional

EDIT:

Looks good in my editor now 🎉

image

🧢 Checklist

  • Documentation
  • Tests
  • Ready to be merged

🎫 Affected issues

📌 Resources

@ndom91 ndom91 requested a review from ThangHuuVu as a code owner February 27, 2024 13:38
Copy link

vercel bot commented Feb 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Ignored Deployments
Name Status Preview Updated (UTC)
auth-docs ⬜️ Ignored (Inspect) Feb 27, 2024 1:39pm
next-auth-docs ⬜️ Ignored (Inspect) Feb 27, 2024 1:39pm
nextra-docs ⬜️ Ignored (Inspect) Feb 27, 2024 1:39pm

@ThangHuuVu ThangHuuVu merged commit 1a11876 into main Feb 28, 2024
12 of 13 checks passed
@ThangHuuVu ThangHuuVu deleted the ndom91/svelte-cleanup-serverside-components branch February 28, 2024 10:22
@Shrumpf
Copy link

Shrumpf commented Mar 5, 2024

Now it's missing a space.

<slot name="submitButton">Signin{provider ? `with ${provider}` : ""}</slot>

results in Signinwith {provider} instead of Signin with {provider}

it should be

<slot name="submitButton">Signin{provider ? ` with ${provider}` : ""}</slot>

@ndom91
Copy link
Member Author

ndom91 commented Mar 5, 2024

Ah good catch, I'll put up a PR shortly 🙏

Fixed: #10225

@DePasqualeOrg
Copy link

"Sign in" should be written with a space. "Signin" is not a word in English.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants