Skip to content

Commit

Permalink
fix(sveltekit): add space after provider name in SignIn btn (#10225)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndom91 authored Mar 5, 2024
1 parent f9306df commit 239dfcf
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/frameworks-sveltekit/src/lib/components/SignIn.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,25 @@
>
<input type="hidden" name="providerId" value={provider} />
{#if callbackUrl}
<input type="hidden" name="callbackUrl" value={callbackUrl} />
<input type="hidden" name="callbackUrl" value={callbackUrl} />
{/if}
{#if redirect}
<input type="hidden" name="redirect" value={redirect} />
<input type="hidden" name="redirect" value={redirect} />
{/if}
{#if authorizationParamsInputs}
{#each Object.entries(authorizationParamsInputs) as [key, value]}
<input type="hidden" name={`authorizationParams-${key}`} value={value} />
<input type="hidden" name={`authorizationParams-${key}`} {value} />
{/each}
{/if}
{#if provider === "credentials"}
<slot name="credentials" />
{/if}
{#if provider === "email" || provider === "sendgrid" || provider === "resend"}
<slot name="email">
<label class="section-header" for={`input-email-for-${provider}-provider`}>
<label
class="section-header"
for={`input-email-for-${provider}-provider`}
>
Email
</label>
<input
Expand All @@ -60,6 +63,6 @@
</slot>
{/if}
<button type="submit">
<slot name="submitButton">Signin{provider ? `with ${provider}` : ""}</slot>
<slot name="submitButton">Signin{provider ? ` with ${provider}` : ""}</slot>
</button>
</form>

0 comments on commit 239dfcf

Please sign in to comment.