Skip to content

Commit

Permalink
type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwooding committed May 13, 2024
1 parent db1bb55 commit 9ce16d4
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Parameters } from "@storybook/react";
import type { GlobalTypes } from "@storybook/csf";
import type { Parameters, GlobalTypes } from "@storybook/types";
import "@salt-ds/theme/index.css";
import "@salt-ds/theme/css/theme-next.css";
import "@fontsource/open-sans/300.css";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default {
rowGap: {
type: "number",
},
children: { control: { type: null } },
children: { control: false },
},
} as Meta<typeof BorderLayout>;

Expand Down
2 changes: 1 addition & 1 deletion packages/core/stories/panel/panel.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ All.args = {
children: <p>This is a Panel</p>,
};
All.argTypes = {
children: { control: { type: null } },
children: { control: false },
};

export const Primary = Template.bind({});
Expand Down
4 changes: 2 additions & 2 deletions packages/core/stories/split-layout/split-layout.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export default {
gap: {
type: "number",
},
endItem: { control: { type: null } },
startItem: { control: { type: null } },
endItem: { control: false },
startItem: { control: false },
},
decorators: [
(Story) => (
Expand Down
1 change: 0 additions & 1 deletion packages/icons/stories/icon.qa.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export const AllIcons: StoryFn = () => {
gap: 8,
padding: "12px 0",
}}
key={size}
>
{allIcons.map((IconComponent, i) => (
<IconComponent key={i} size={size} />
Expand Down
2 changes: 1 addition & 1 deletion packages/lab/stories/layer-layout/layer-layout.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
component: LayerLayout,
argTypes: {
position: {
options: LAYER_POSITIONS,
options: Array.from(LAYER_POSITIONS),
control: { type: "select" },
},
},
Expand Down

0 comments on commit 9ce16d4

Please sign in to comment.