Skip to content

Commit

Permalink
fix: demo typecheck error
Browse files Browse the repository at this point in the history
  • Loading branch information
rifandani committed Jan 11, 2024
1 parent d283d7a commit 749b7ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { DemoDaisyAlert } from './daisy/demo-daisy-alert'
import { DemoDaisyAvatar } from './daisy/demo-daisy-avatar'
import { DemoDaisyBadge } from './daisy/demo-daisy-badge'

export function Demo() {
export function DemoContainer() {
return (
<section className="grid h-full grid-cols-1 gap-5 xl:grid-cols-2">
<div className="flex flex-col space-y-5 p-5">
Expand Down
4 changes: 2 additions & 2 deletions src/modules/playground/pages/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { ComponentPropsWithoutRef } from 'react'
import { Button, Tab, TabList, TabPanel, Tabs } from 'react-aria-components'
import { twJoin } from 'tailwind-merge'
import { Demo } from '#playground/components/demo/demo'
import { For } from '#shared/components/for/for'
import { modes, themes } from '#shared/constants/theme.constant'
import { useColorMode } from '#shared/hooks/use-color-mode.hook'
import { DemoContainer } from '#playground/components/demo/root'

Check failure on line 7 in src/modules/playground/pages/page.tsx

View workflow job for this annotation

GitHub Actions / test (lts/*, ubuntu-latest)

Cannot find module '#playground/components/demo/root' or its corresponding type declarations.

Check failure on line 7 in src/modules/playground/pages/page.tsx

View workflow job for this annotation

GitHub Actions / typecheck

Cannot find module '#playground/components/demo/root' or its corresponding type declarations.

export function PlaygroundPage() {
const [, setTheme] = useColorMode({
Expand Down Expand Up @@ -60,7 +60,7 @@ export function PlaygroundPage() {
</TabList>

<TabPanel id="demo" className="h-full w-full">
<Demo />
<DemoContainer />
</TabPanel>

<TabPanel id="playground" className="h-full w-full">
Expand Down

0 comments on commit 749b7ac

Please sign in to comment.