Skip to content

Commit b255792

Browse files
committed
tweaks
1 parent ed99e17 commit b255792

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

examples/solid/start-clerk-basic/src/routes/__root.tsx

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ function RootDocument({ children }: { children: JSXElement }) {
102102
<body>
103103
<HeadContent />
104104

105+
<<<<<<< Updated upstream
105106
<div class="p-2 flex gap-2 text-lg">
106107
<Link
107108
to="/"
@@ -127,6 +128,36 @@ function RootDocument({ children }: { children: JSXElement }) {
127128
<SignedOut>
128129
<SignInButton mode="modal" />
129130
</SignedOut>
131+
=======
132+
133+
<ClerkProvider publishableKey={import.meta.env.VITE_CLERK_PUBLISHABLE_KEY}>
134+
<div class="p-2 flex gap-2 text-lg">
135+
<Link
136+
to="/"
137+
activeProps={{
138+
class: 'font-bold',
139+
}}
140+
activeOptions={{ exact: true }}
141+
>
142+
Home
143+
</Link>{' '}
144+
<Link
145+
to="/posts"
146+
activeProps={{
147+
class: 'font-bold',
148+
}}
149+
>
150+
Posts
151+
</Link>
152+
<div class="ml-auto">
153+
<SignedIn>
154+
<UserButton />
155+
</SignedIn>
156+
<SignedOut>
157+
<SignInButton mode="modal" />
158+
</SignedOut>
159+
</div>
160+
>>>>>>> Stashed changes
130161
</div>
131162
</div>
132163
<hr />
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { clerkMiddleware } from '@clerk/tanstack-react-start/server'
22
import { createStart } from '@tanstack/solid-start'
3+
import type { AnyRequestMiddleware } from '@tanstack/solid-start'
34

45
export const startInstance = createStart(() => {
56
return {
6-
requestMiddleware: [clerkMiddleware()],
7+
requestMiddleware: [clerkMiddleware() as AnyRequestMiddleware],
78
}
89
})

0 commit comments

Comments
 (0)