Skip to content

Commit 498bc72

Browse files
committed
fix Show component imports in code examples
1 parent 864712b commit 498bc72

File tree

7 files changed

+12
-46
lines changed

7 files changed

+12
-46
lines changed

docs/guides/development/integrations/databases/instantdb.mdx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,7 @@ This tutorial will walk you through the steps to integrate InstantDB with Clerk
155155

156156
```tsx {{ filename: 'app/layout.tsx', collapsible: true }}
157157
import type { Metadata } from 'next'
158-
import {
159-
ClerkProvider,
160-
SignInButton,
161-
SignUpButton,
162-
SignedIn,
163-
SignedOut,
164-
UserButton,
165-
} from '@clerk/nextjs'
158+
import { ClerkProvider, Show, SignInButton, SignUpButton, UserButton } from '@clerk/nextjs'
166159
import { Geist, Geist_Mono } from 'next/font/google'
167160
import './globals.css'
168161
import InstantDBAuthSync from '@/component/InstantDBAuthSync'

docs/guides/development/migrating/astro-community-sdk.mdx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,9 @@ import { Show } from '@clerk/astro/react'
131131

132132
To use a React component inside a `.jsx` or `.tsx` file, update the import path.
133133

134-
```jsx {{ prettier: false, del: [6], ins: [7] }}
135-
import {
136-
SignInButton,
137-
SignedIn,
138-
SignedOut,
139-
UserButton,
140-
} from '@clerk/astro/client/react'
141-
} from '@clerk/astro/react'
134+
```jsx {{ prettier: false, del: [1], ins: [2] }}
135+
import { Show, SignInButton, UserButton } from '@clerk/astro/client/react'
136+
import { Show, SignInButton, UserButton } from '@clerk/astro/react'
142137

143138
export default function Header() {
144139
return (

docs/guides/development/spa-mode.mdx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,7 @@ This guide explains how to use Clerk with [Remix in SPA mode](https://remix.run/
109109
- [`<SignInButton />`](/docs/reference/components/unstyled/sign-in-button): An unstyled component that links to the sign-in page. In this example, since no props or [environment variables](/docs/guides/development/clerk-environment-variables) are set for the sign-in URL, this component links to the [Account Portal sign-in page](/docs/guides/account-portal/overview#sign-in).
110110

111111
```tsx {{ filename: 'routes/_index.tsx' }}
112-
import {
113-
SignInButton,
114-
SignOutButton,
115-
SignUpButton,
116-
SignedIn,
117-
SignedOut,
118-
UserButton,
119-
} from '@clerk/remix'
112+
import { Show, SignInButton, SignOutButton, SignUpButton, UserButton } from '@clerk/remix'
120113

121114
export default function Index() {
122115
return (

docs/guides/organizations/getting-started.astro.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@ Organizations let you group users with Roles and Permissions, enabling you to bu
2424
```astro {{ filename: 'src/layouts/Layout.astro', fold: [[27, 34]] }}
2525
---
2626
import {
27-
SignedIn,
28-
SignedOut,
29-
UserButton,
27+
OrganizationSwitcher,
28+
Show,
3029
SignInButton,
31-
+ OrganizationSwitcher,
30+
UserButton,
3231
} from '@clerk/astro/components'
3332
---
3433

docs/guides/organizations/getting-started.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@ Organizations let you group users with Roles and Permissions, enabling you to bu
2525
import type { Metadata } from 'next'
2626
import {
2727
ClerkProvider,
28+
OrganizationSwitcher,
29+
Show,
2830
SignInButton,
2931
SignUpButton,
30-
SignedIn,
31-
SignedOut,
3232
UserButton,
33-
+ OrganizationSwitcher,
3433
} from '@clerk/nextjs'
3534
import { Geist, Geist_Mono } from 'next/font/google'
3635
import './globals.css'

docs/reference/components/clerk-provider.mdx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,7 @@ The recommended approach is to wrap your entire app with `<ClerkProvider>` at th
117117

118118
<If sdk="chrome-extension">
119119
```jsx {{ filename: 'src/routes/index.tsx' }}
120-
import {
121-
ClerkProvider,
122-
SignedIn,
123-
SignedOut,
124-
UserButton,
125-
SignInButton,
126-
} from '@clerk/chrome-extension'
120+
import { ClerkProvider, Show, SignInButton, UserButton } from '@clerk/chrome-extension'
127121

128122
const PUBLISHABLE_KEY = process.env.PLASMO_PUBLIC_CLERK_PUBLISHABLE_KEY
129123
const EXTENSION_URL = chrome.runtime.getURL('.')

docs/reference/nextjs/errors/auth-was-called.mdx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,7 @@ Select the appropriate solution based on your use case:
117117
Or loading Clerk built-in components:
118118
119119
```tsx {{ filename: 'app/(in-app)/layout.tsx' }}
120-
import {
121-
ClerkProvider,
122-
SignedIn,
123-
SignedOut,
124-
SignInButton,
125-
SignUpButton,
126-
UserButton,
127-
} from '@clerk/nextjs'
120+
import { ClerkProvider, Show, SignInButton, SignUpButton, UserButton } from '@clerk/nextjs'
128121
129122
export default function AppLayout({ children }: { children: React.ReactNode }) {
130123
return (

0 commit comments

Comments
 (0)