Skip to content

Commit

Permalink
Update quickstart
Browse files Browse the repository at this point in the history
  • Loading branch information
octoper committed Aug 9, 2024
1 parent eaec57f commit a31478c
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 101 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,4 @@ yarn.lock
# Sentry Config File
.env.sentry-build-plugin
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
33 changes: 18 additions & 15 deletions app/routes/__root.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {
Link,
Outlet,
ScrollRestoration,
createRootRoute,
Expand All @@ -10,8 +9,12 @@ import * as React from 'react'
import { DefaultCatchBoundary } from '~/components/DefaultCatchBoundary'
import { NotFound } from '~/components/NotFound'
import { ClerkProvider } from '@clerk/tanstack-start'
import appCss from '~/styles/app.css?url'

export const Route = createRootRoute({
links: () => [
{ rel: 'stylesheet', href: appCss },
],
errorComponent: (props) => {
return (
<RootDocument>
Expand All @@ -23,26 +26,26 @@ export const Route = createRootRoute({
component: () => {
return (
<RootDocument>
<ClerkProvider>
<Outlet />
</ClerkProvider>
<Outlet />
</RootDocument>
)
},
})

function RootDocument({ children }: { children: React.ReactNode }) {
return (
<Html>
<Head>
<Meta />
</Head>
<Body>
{children}
<ScrollRestoration />
<TanStackRouterDevtools position="bottom-right" />
<Scripts />
</Body>
</Html>
<ClerkProvider>
<Html>
<Head>
<Meta />
</Head>
<Body>
{children}
<ScrollRestoration />
<TanStackRouterDevtools position="bottom-right" />
<Scripts />
</Body>
</Html>
</ClerkProvider>
)
}
34 changes: 0 additions & 34 deletions app/routes/_layout/_layout-2.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions app/routes/_layout/_layout-2/layout-a.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions app/routes/_layout/_layout-2/layout-b.tsx

This file was deleted.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"build": "vinxi build",
"start": "vinxi start",
"lint": "prettier --check '**/*' --ignore-unknown && eslint --ext .ts,.tsx ./app",
"format": "prettier --write '**/*' --ignore-unknown",
"test:e2e": "playwright test --project=chromium"
"format": "prettier --write '**/*' --ignore-unknown"
},
"dependencies": {
"@clerk/tanstack-start": "^0.1.14",
Expand Down
30 changes: 0 additions & 30 deletions playwright.config.ts

This file was deleted.

0 comments on commit a31478c

Please sign in to comment.