Skip to content

Commit 5dfb32e

Browse files
committed
fix: auth button
1 parent 1a69f5d commit 5dfb32e

File tree

2 files changed

+16
-24
lines changed

2 files changed

+16
-24
lines changed

apps/frontend/src/routes/(auth)/login/+page.svelte

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -216,18 +216,14 @@
216216
</div>
217217
<Separator class="my-6" />
218218
<div class="space-y-2">
219-
{#if env.UNDB_PUBLIC_OAUTH_GITHUB_ENABLED === "true"}
220-
<Button href="/login/github" variant="secondary" class="w-full">
221-
<img class="mr-2 h-4 w-4" src={Github} alt="github" />
222-
Login with Github
223-
</Button>
224-
{/if}
225-
{#if env.UNDB_PUBLIC_OAUTH_GOOGLE_ENABLED === "true"}
226-
<Button href="/login/google" variant="secondary" class="w-full">
227-
<img class="mr-2 h-4 w-4" src={Google} alt="google" />
228-
Login with Google
229-
</Button>
230-
{/if}
219+
<Button href="/login/github" variant="secondary" class="w-full">
220+
<img class="mr-2 h-4 w-4" src={Github} alt="github" />
221+
Login with Github
222+
</Button>
223+
<Button href="/login/google" variant="secondary" class="w-full">
224+
<img class="mr-2 h-4 w-4" src={Google} alt="google" />
225+
Login with Google
226+
</Button>
231227
</div>
232228
</Card.Content>
233229
</Card.Root>

apps/frontend/src/routes/(auth)/signup/+page.svelte

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -253,18 +253,14 @@
253253
{#if !invitationId}
254254
<Separator class="my-6" />
255255
<div class="space-y-2">
256-
{#if env.UNDB_PUBLIC_OAUTH_GITHUB_ENABLED === "true"}
257-
<Button href="/login/github" variant="secondary" class="w-full">
258-
<img class="mr-2 h-4 w-4" src={Github} alt="github" />
259-
Login with Github
260-
</Button>
261-
{/if}
262-
{#if env.UNDB_PUBLIC_OAUTH_GOOGLE_ENABLED === "true"}
263-
<Button href="/login/google" variant="secondary" class="w-full">
264-
<img class="mr-2 h-4 w-4" src={Google} alt="google" />
265-
Login with Google
266-
</Button>
267-
{/if}
256+
<Button href="/login/github" variant="secondary" class="w-full">
257+
<img class="mr-2 h-4 w-4" src={Github} alt="github" />
258+
Login with Github
259+
</Button>
260+
<Button href="/login/google" variant="secondary" class="w-full">
261+
<img class="mr-2 h-4 w-4" src={Google} alt="google" />
262+
Login with Google
263+
</Button>
268264
</div>
269265
{/if}
270266
</Card.Content>

0 commit comments

Comments
 (0)