From 749b7ac09d45e1b02d9b2a46f24196c93f6f5a96 Mon Sep 17 00:00:00 2001 From: rifandani Date: Thu, 11 Jan 2024 12:30:30 +0700 Subject: [PATCH] fix: demo typecheck error --- src/modules/playground/components/Demo/{Demo.tsx => root.tsx} | 2 +- src/modules/playground/pages/page.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/modules/playground/components/Demo/{Demo.tsx => root.tsx} (98%) diff --git a/src/modules/playground/components/Demo/Demo.tsx b/src/modules/playground/components/Demo/root.tsx similarity index 98% rename from src/modules/playground/components/Demo/Demo.tsx rename to src/modules/playground/components/Demo/root.tsx index b378690..2b304c8 100644 --- a/src/modules/playground/components/Demo/Demo.tsx +++ b/src/modules/playground/components/Demo/root.tsx @@ -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 (
diff --git a/src/modules/playground/pages/page.tsx b/src/modules/playground/pages/page.tsx index 0c91ab6..90ecbce 100644 --- a/src/modules/playground/pages/page.tsx +++ b/src/modules/playground/pages/page.tsx @@ -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' export function PlaygroundPage() { const [, setTheme] = useColorMode({ @@ -60,7 +60,7 @@ export function PlaygroundPage() { - +