Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

Commit 00b307e

Browse files
committed
fix: warnings/errors in storybook
1 parent e2144db commit 00b307e

File tree

6 files changed

+23
-34
lines changed

6 files changed

+23
-34
lines changed

apps/docs/.storybook/main.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ function getAbsolutePath(value: string): string {
88
const config: StorybookConfig = {
99
stories: ["../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
1010
addons: [
11-
getAbsolutePath("@storybook/addon-essentials"),
12-
getAbsolutePath("@storybook/addon-onboarding"),
1311
getAbsolutePath("@storybook/experimental-addon-test"),
12+
getAbsolutePath("@storybook/addon-essentials"),
1413
getAbsolutePath("@storybook/addon-storysource"),
1514
getAbsolutePath("@storybook/addon-designs"),
1615
getAbsolutePath("@storybook/addon-themes"),
1716
getAbsolutePath("@storybook/addon-a11y"),
1817
getAbsolutePath("@storybook/addon-queryparams"),
19-
getAbsolutePath("@storybook/addon-backgrounds"),
2018
getAbsolutePath("@chromatic-com/storybook"),
2119
getAbsolutePath("storybook-dark-mode"),
2220
],

apps/docs/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@
1111
"@company/config-tailwind": "workspace:*",
1212
"@company/config-typescript": "workspace:*",
1313
"@storybook/addon-a11y": "8.6.4",
14-
"@storybook/addon-backgrounds": "8.6.4",
1514
"@storybook/addon-designs": "8.2.0",
1615
"@storybook/addon-essentials": "8.6.4",
17-
"@storybook/addon-onboarding": "8.6.4",
1816
"@storybook/addon-queryparams": "7.0.1",
1917
"@storybook/addon-storysource": "8.6.4",
2018
"@storybook/addon-themes": "8.6.4",

apps/docs/src/image.stories.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ export const Default: Story = {
2626
},
2727
width: 350,
2828
height: 350,
29+
priority: true,
2930
},
3031
};

apps/docs/vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ import { defineConfig } from "vite";
44

55
export default defineConfig({
66
plugins: [storybookNextJsPlugin(), tailwindcss()],
7+
optimizeDeps: {
8+
include: ["sb-original/default-loader", "sb-original/image-context"],
9+
},
710
});

packages/ui/src/components/hero.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ export const Hero = ({ title, description, link, image }: HeroProps) => (
1616
<h2>{title}</h2>
1717
<p>{description}</p>
1818
<Link {...link} />
19-
<Image image={image} width={350} height={350} />
19+
<Image image={image} width={350} height={350} priority={true} />
2020
</div>
2121
);

pnpm-lock.yaml

Lines changed: 17 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)