Skip to content

Commit d8eb117

Browse files
committed
signedIn/signedOut -> signed-in/signed-out
1 parent 6c63d2b commit d8eb117

File tree

51 files changed

+147
-126
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+147
-126
lines changed

integration/templates/astro-hybrid/src/pages/index.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ export const prerender = true;
77
---
88

99
<Layout title='Home'>
10-
<Show when='signedOut'>
10+
<Show when='signed-out'>
1111
<h1>Signed out</h1>
1212
<SignInButton
1313
mode='modal'
1414
fallbackRedirectUrl='/'
1515
/>
1616
</Show>
17-
<Show when='signedIn'>
17+
<Show when='signed-in'>
1818
<h1>Signed in</h1>
1919
<UserButton />
2020
<OrganizationSwitcher client:only='react' />

integration/templates/astro-hybrid/src/pages/ssr.astro

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,20 @@ export const prerender = false;
77
---
88

99
<Layout title='Home'>
10-
<Show when='signedOut' isStatic={false}>
10+
<Show
11+
when='signed-out'
12+
isStatic={false}
13+
>
1114
<h1>Signed out</h1>
1215
<SignInButton
1316
mode='modal'
1417
fallbackRedirectUrl='/'
1518
/>
1619
</Show>
17-
<Show when='signedIn' isStatic={false}>
20+
<Show
21+
when='signed-in'
22+
isStatic={false}
23+
>
1824
<h1>Signed in</h1>
1925
<UserButton />
2026
<OrganizationSwitcher client:load />

integration/templates/astro-node/src/layouts/Layout.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ import CustomUserButton from '../components/CustomUserButton.astro';
8080
<div class='flex gap-5 items-center'>
8181
<LanguagePicker client:idle />
8282

83-
<Show when='signedIn'>
83+
<Show when='signed-in'>
8484
<CustomUserButton />
8585
</Show>
8686

87-
<Show when='signedOut'>
87+
<Show when='signed-out'>
8888
<div class='sm:flex sm:gap-4'>
8989
<a
9090
class='inline-flex group relative isolate w-fit transform-gpu overflow-hidden rounded-md px-3 py-[0.1875rem] cursor-pointer after:absolute after:inset-0 after:hover:opacity-100 transition duration-300 ease-[cubic-bezier(.4,.36,0,1)] after:duration-300 after:ease-[cubic-bezier(.4,.36,0,1)] after:transtion-opacity shadow-[inset_0px_1px_0px_theme(colors.white/12%),inset_0px_-1px_0px_theme(colors.white/4%),0px_2px_2px_-1px_rgb(66,67,77,0.24),0px_4px_4px_-2px_rgb(66,67,77,0.12)] bg-[#3C169C] ring-1 ring-[#230B6A] after:bg-[linear-gradient(theme(colors.white/24%),theme(colors.white/16%)_46%,theme(colors.white/12%)_54%,theme(colors.white/8%))] after:opacity-60 [--text-color:#FFFFFF]'

integration/templates/astro-node/src/layouts/react/Layout.astro

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,17 @@ import { LanguagePicker } from '../../components/LanguagePicker';
7979
<div class='flex gap-5 items-center'>
8080
<LanguagePicker client:idle />
8181

82-
<Show when='signedIn' client:load>
82+
<Show
83+
when='signed-in'
84+
client:load
85+
>
8386
<UserButton client:load />
8487
</Show>
8588

86-
<Show when='signedOut' client:load>
89+
<Show
90+
when='signed-out'
91+
client:load
92+
>
8793
<div class='sm:flex sm:gap-4'>
8894
<a
8995
class='inline-flex group relative isolate w-fit transform-gpu overflow-hidden rounded-md px-3 py-[0.1875rem] cursor-pointer after:absolute after:inset-0 after:hover:opacity-100 transition duration-300 ease-[cubic-bezier(.4,.36,0,1)] after:duration-300 after:ease-[cubic-bezier(.4,.36,0,1)] after:transtion-opacity shadow-[inset_0px_1px_0px_theme(colors.white/12%),inset_0px_-1px_0px_theme(colors.white/4%),0px_2px_2px_-1px_rgb(66,67,77,0.24),0px_4px_4px_-2px_rgb(66,67,77,0.12)] bg-[#3C169C] ring-1 ring-[#230B6A] after:bg-[linear-gradient(theme(colors.white/24%),theme(colors.white/16%)_46%,theme(colors.white/12%)_54%,theme(colors.white/8%))] after:opacity-60 [--text-color:#FFFFFF]'

integration/templates/astro-node/src/pages/billing/checkout-btn.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { Show, __experimental_CheckoutButton as CheckoutButton } from '@clerk/as
33
import Layout from '../../layouts/Layout.astro';
44
---
55

6-
<Layout title="Checkout Button">
6+
<Layout title='Checkout Button'>
77
<main>
8-
<Show when='signedIn'>
8+
<Show when='signed-in'>
99
<CheckoutButton
1010
planId='cplan_2wMjqdlza0hTJc4HLCoBwAiExhF'
1111
planPeriod='month'

integration/templates/astro-node/src/pages/index.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Show, SignOutButton, OrganizationSwitcher } from '@clerk/astro/componen
77

88
<Layout title='Welcome to Astro.'>
99
<h1>Welcome to <span class='text-gradient'>Astro</span></h1>
10-
<Show when='signedIn'>
10+
<Show when='signed-in'>
1111
<OrganizationSwitcher
1212
appearance={{
1313
elements: {
@@ -26,7 +26,7 @@ import { Show, SignOutButton, OrganizationSwitcher } from '@clerk/astro/componen
2626
role='list'
2727
class='link-card-grid'
2828
>
29-
<Show when='signedOut'>
29+
<Show when='signed-out'>
3030
<Card
3131
href='/sign-in'
3232
title='Log in'
@@ -38,7 +38,7 @@ import { Show, SignOutButton, OrganizationSwitcher } from '@clerk/astro/componen
3838
body='Supercharge your project with new frameworks and libraries.'
3939
/>
4040
</Show>
41-
<Show when='signedIn'>
41+
<Show when='signed-in'>
4242
<Card
4343
href='/user'
4444
title='User Profile'

integration/templates/astro-node/src/pages/react/index.astro

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ import { Show, SignOutButton, OrganizationSwitcher } from '@clerk/astro/react';
77

88
<Layout title='Welcome to Astro.'>
99
<h1>Welcome to <span class='text-gradient'>Astro</span> + React</h1>
10-
<Show when='signedIn' client:load>
10+
<Show
11+
when='signed-in'
12+
client:load
13+
>
1114
<OrganizationSwitcher
1215
client:load
1316
appearance={{
@@ -31,7 +34,10 @@ import { Show, SignOutButton, OrganizationSwitcher } from '@clerk/astro/react';
3134
role='list'
3235
class='link-card-grid'
3336
>
34-
<Show when='signedOut' client:load>
37+
<Show
38+
when='signed-out'
39+
client:load
40+
>
3541
<Card
3642
href='/sign-in'
3743
title='Log in'
@@ -43,7 +49,10 @@ import { Show, SignOutButton, OrganizationSwitcher } from '@clerk/astro/react';
4349
body='Supercharge your project with new frameworks and libraries.'
4450
/>
4551
</Show>
46-
<Show when='signedIn' client:load>
52+
<Show
53+
when='signed-in'
54+
client:load
55+
>
4756
<Card
4857
href='/user'
4958
title='User Profile'

integration/templates/astro-node/src/pages/transitions/index.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import Layout from '../../layouts/ViewTransitionsLayout.astro';
55

66
<Layout title='Sign in'>
77
<div class='w-full flex justify-center'>
8-
<Show when='signedOut'>
8+
<Show when='signed-out'>
99
<a href='/transitions/sign-in'>Sign in</a>
1010
</Show>
11-
<Show when='signedIn'>
11+
<Show when='signed-in'>
1212
<UserButton />
1313
</Show>
1414
</div>

integration/templates/expo-web/app/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ export default function Index() {
1111
alignItems: 'center',
1212
}}
1313
>
14-
<Show when='signedIn'>
14+
<Show when='signed-in'>
1515
<Text>You are signed in!</Text>
1616
<UserButton />
1717
</Show>
18-
<Show when='signedOut'>
18+
<Show when='signed-out'>
1919
<Text>You are signed out</Text>
2020
</Show>
2121
</View>

integration/templates/next-app-router-quickstart/src/app/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import { Show, SignInButton, SignUpButton, UserButton } from '@clerk/nextjs';
33
export default function Home() {
44
return (
55
<header>
6-
<Show when='signedOut'>
6+
<Show when='signed-out'>
77
<p>signed-out-state</p>
88
<SignInButton />
99
<SignUpButton />
1010
</Show>
11-
<Show when='signedIn'>
11+
<Show when='signed-in'>
1212
<p>signed-in-state</p>
1313
<UserButton />
1414
</Show>

0 commit comments

Comments
 (0)