Skip to content

Commit

Permalink
fix: type & linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sapkra committed Nov 11, 2024
1 parent ba8661a commit 55d3e77
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface FragmentUIContext {
buttonGroup?: Partial<ButtonGroupProps>;
breadcrumbs?: Partial<BreadcrumbsProps>;
card?: Partial<CardProps>;
chart?: Partial<{[chartType in ChartProps['type']]: Partial<Pick<ApexChartProps, 'options' | 'series'>>}>;
chart?: Partial<Record<ChartProps['type'], Partial<Pick<ApexChartProps, 'options' | 'series'>>>>;
checkbox?: Partial<CheckboxProps>;
checkboxGroup?: Partial<CheckboxGroupProps>;
chip?: Partial<ChipProps>;
Expand Down
9 changes: 2 additions & 7 deletions src/fragments/shell/Shell.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,23 +157,19 @@ 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,
},
};

export const WithTable: Story = {
args: {
...Primary.args,
sidebar: Primary.args?.sidebar ? {
...Primary.args.sidebar,
autoLayout: true,
} : undefined,
children: (
<>
<PageHeader title="Customers" description="Manage your customers and your profile.">
Expand Down Expand Up @@ -255,7 +251,6 @@ export const WithGrid: Story = {
...Primary.args,
sidebar: Primary.args?.sidebar ? {
...Primary.args.sidebar,
autoLayout: true,
} : undefined,
children: (
<>
Expand Down
7 changes: 3 additions & 4 deletions src/fragments/sidebar/Sidebar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ type Story = StoryObj<typeof meta>;
export const Primary: Story = {
args: {
currentPath: "/projects",
layout: 'expanded',
items: [
{
type: "user",
Expand Down Expand Up @@ -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',
},
};
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

0 comments on commit 55d3e77

Please sign in to comment.