diff --git a/src/components/main/ResultList.stories.tsx b/src/components/main/ResultList.stories.tsx index b4be3be..81c9ff4 100644 --- a/src/components/main/ResultList.stories.tsx +++ b/src/components/main/ResultList.stories.tsx @@ -2,6 +2,8 @@ import { Meta, StoryObj } from "@storybook/react"; import ResultList from "./ResultList"; import { ResultListType } from "@/src/types/searchResult"; import { fn } from "@storybook/test"; +import BookmarkBorder from "../../common/Image/BookmarkBorder"; +import Bookmark from "../../common/Image/Bookmark"; const meta = { title: "Components/ResultList", @@ -52,10 +54,29 @@ const sampleResults: ResultListType = { export const Basic: Story = { args: { searchResult: sampleResults, - renderBookmark: ({ onClick, isFavorites }) => ( - - ), + renderBookmark: ({ onClick, isFavorites }) => { + return isFavorites ? ( + ) => { + e.stopPropagation(); + onClick(e); + }} + width="16" + height="16" + cursor="pointer" + /> + ) : ( + ) => { + e.stopPropagation(); + onClick(e); + }} + width="16" + height="16" + fill="#007BE9" + cursor="pointer" + /> + ); + }, }, };