Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into prod
  • Loading branch information
masoudmanson committed Sep 18, 2024
2 parents beb97d2 + 6e3b035 commit fd460e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import { DropdownMenu } from "./stories/default";
import { ScreenshotTestDemo } from "./stories/screenshot";
import { TestDemo } from "./stories/test";
import { TitleElementDemo } from "./stories/titleElement";
import { WithHeaderComponentDemo } from "./stories/withHeaderComponent";

export default {
argTypes: {
Expand Down Expand Up @@ -152,7 +152,9 @@ export const Test = {
render: (args: Args) => <TestDemo data-testid="dropdown-menu" {...args} />,
};

export const TitleElement = {
// With a minimal button at the headerComponentSlot

export const WithHeaderComponent = {
args: {
keepSearchOnSelect: false,
multiple: true,
Expand All @@ -169,7 +171,5 @@ export const TitleElement = {
skip: true,
},
},
render: (args: Args) => (
<TitleElementDemo data-testid="dropdown-menu" {...args} />
),
render: (args: Args) => <WithHeaderComponentDemo {...args} />,
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { DefaultAutocompleteOption } from "src/core/Autocomplete";
import Button from "src/core/Button";
import RawDropdownMenu from "src/core/DropdownMenu";

export const TitleElementDemo = <
export const WithHeaderComponentDemo = <
T extends DefaultAutocompleteOption,
Multiple extends boolean | undefined,
DisableClearable extends boolean | undefined,
Expand Down

0 comments on commit fd460e5

Please sign in to comment.