Skip to content

Commit

Permalink
fix(website): resolve some loading issues
Browse files Browse the repository at this point in the history
  • Loading branch information
cschroeter committed Nov 4, 2024
1 parent ffd92c3 commit 2550e48
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 5 deletions.
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions components/react/src/demos/select.demo.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { CheckIcon, ChevronsUpDownIcon } from 'lucide-react'
import { Select, createListCollection } from '~/components/ui/select'

Expand Down
2 changes: 1 addition & 1 deletion components/react/src/plus
Submodule plus updated from 05603c to 85585d
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"globby": "14.0.2",
"lucide-react": "0.454.0",
"next": "15.0.2",
"next-auth": "5.0.0-beta.19",
"next-auth": "5.0.0-beta.25",
"next-themes": "0.3.0",
"pandacss-preset-typography": "0.1.6",
"prisma": "5.21.1",
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/docs/component-preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ export const ComponentPreview = ({ controls }: Props) => {
}

const getComponent = (component: string) =>
dynamic(() => import(`~/demos/${component}.demo`).then((mod) => mod.Demo))
dynamic(() => import(`~/demos/${component}.demo`).then((mod) => mod.Demo), { ssr: false })
8 changes: 6 additions & 2 deletions website/src/components/examples/block-playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ export const BlockPlayground = async (props: Props) => {

const Block = dynamic(() =>
import(`~/components/blocks/${block.id}/${variant.id}/example`)
.then((mod) => mod.Example)
.catch(() => NotFound),
.then((mod) => ({
default: mod.Example,
}))
.catch(() => ({
default: NotFound,
})),
)

const hasAccessToSourceCode = variant.accessLevel === 'free' || (await hasUserPermission())
Expand Down
1 change: 1 addition & 0 deletions website/src/demos/select.demo.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { CheckIcon, ChevronsUpDownIcon } from 'lucide-react'
import { Select, createListCollection } from '~/components/ui/select'

Expand Down

0 comments on commit 2550e48

Please sign in to comment.