From 55d3e77a80b9e0d71de2836acba0b82e0c4c083e Mon Sep 17 00:00:00 2001 From: Paul Tiedtke Date: Mon, 11 Nov 2024 04:05:36 +0100 Subject: [PATCH] fix: type & linting errors --- src/context.ts | 2 +- src/fragments/shell/Shell.stories.tsx | 9 ++------- src/fragments/sidebar/Sidebar.stories.tsx | 7 +++---- src/index.ts | 1 - 4 files changed, 6 insertions(+), 13 deletions(-) diff --git a/src/context.ts b/src/context.ts index fa949f5..67b6661 100644 --- a/src/context.ts +++ b/src/context.ts @@ -17,7 +17,7 @@ export interface FragmentUIContext { buttonGroup?: Partial; breadcrumbs?: Partial; card?: Partial; - chart?: Partial<{[chartType in ChartProps['type']]: Partial>}>; + chart?: Partial>>>; checkbox?: Partial; checkboxGroup?: Partial; chip?: Partial; diff --git a/src/fragments/shell/Shell.stories.tsx b/src/fragments/shell/Shell.stories.tsx index e25adb8..0df5f8b 100644 --- a/src/fragments/shell/Shell.stories.tsx +++ b/src/fragments/shell/Shell.stories.tsx @@ -157,12 +157,12 @@ export const Collapsed: Story = { }, }; -export const Auto: Story = { +export const Expanded: Story = { args: { ...Primary.args, sidebar: Primary.args?.sidebar ? { ...Primary.args.sidebar, - autoLayout: true, + layout: "expanded", } : undefined, }, }; @@ -170,10 +170,6 @@ export const Auto: Story = { export const WithTable: Story = { args: { ...Primary.args, - sidebar: Primary.args?.sidebar ? { - ...Primary.args.sidebar, - autoLayout: true, - } : undefined, children: ( <> @@ -255,7 +251,6 @@ export const WithGrid: Story = { ...Primary.args, sidebar: Primary.args?.sidebar ? { ...Primary.args.sidebar, - autoLayout: true, } : undefined, children: ( <> diff --git a/src/fragments/sidebar/Sidebar.stories.tsx b/src/fragments/sidebar/Sidebar.stories.tsx index 7ebfc4a..2e5dfd9 100644 --- a/src/fragments/sidebar/Sidebar.stories.tsx +++ b/src/fragments/sidebar/Sidebar.stories.tsx @@ -28,7 +28,6 @@ type Story = StoryObj; export const Primary: Story = { args: { currentPath: "/projects", - layout: 'expanded', items: [ { type: "user", @@ -165,13 +164,13 @@ export const Primary: Story = { export const Collapsed: Story = { args: { ...Primary.args, - layout: "collapsed", + layout: 'collapsed', }, }; -export const Auto: Story = { +export const Expanded: Story = { args: { ...Primary.args, - layout: 'auto', + layout: 'expanded', }, }; diff --git a/src/index.ts b/src/index.ts index 649593d..7b1f0db 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,7 +4,6 @@ export { getKeyValue, nextui, useDisclosure, VisuallyHidden } from '@nextui-org/ export * from './components'; export * from './fragments'; -export * from './hooks'; export * from './provider'; export * from './tailwind.plugin';