Skip to content

Commit e15eef5

Browse files
authored
chore(fix): storybook build failure (#48)
1 parent 8b86d6f commit e15eef5

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed
File renamed without changes.

.storybook/assets/search-icon.svg

Lines changed: 3 additions & 0 deletions
Loading

.storybook/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { StorybookConfig } from "@storybook/react-webpack5";
22

33
const config: StorybookConfig = {
4-
staticDirs: ['../src/assets/images'],
4+
staticDirs: [{ from: "./assets/images", to: "/assets/images" }],
55
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
66
addons: [
77
"@storybook/addon-webpack5-compiler-swc",

src/components/card/Card.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const Template: StoryFn<CardProps> = (args) => <BDPCard {...args} />;
1515
export const Default = Template.bind({});
1616
Default.args = {
1717
bannerColor: "#D5BBA4",
18-
logo: "whitepaper.png",
18+
logo: "assets/images/whitepaper.png",
1919
difficulty: "easy",
2020
title: "Bitcoin TLDR",
2121
description:
@@ -26,7 +26,7 @@ export const MediumDifficulty = Template.bind({});
2626

2727
MediumDifficulty.args = {
2828
bannerColor: "#0E9158",
29-
logo: "good-first-issues.png",
29+
logo: "/assets/images/good-first-issues.png",
3030
difficulty: "medium",
3131
title: "Good first issues",
3232
byBDP: true,

0 commit comments

Comments
 (0)