Skip to content

Commit

Permalink
fix(SplitButton storybook): - fix stories that use wrong prop
Browse files Browse the repository at this point in the history
  • Loading branch information
rivka-ungar committed May 23, 2024
1 parent 118d83d commit 2042261
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import MenuItem from "../../Menu/MenuItem/MenuItem";
import Menu from "../../Menu/Menu/Menu";
import MenuTitle from "../../Menu/MenuTitle/MenuTitle";
import "./splitButton.stories.scss";
import { DialogPosition } from "../../../constants";

const metaSettings = createStoryMetaSettingsDecorator({
component: SplitButton,
Expand Down Expand Up @@ -187,7 +188,7 @@ export const SplitButtonAsThePrimaryAction = {
render: () => (
<SplitButton
children="Use template"
secondaryPositions={SplitButton.secondaryPositions.BOTTOM_END}
secondaryDialogPosition={DialogPosition.BOTTOM_START}
secondaryDialogContent={
<SplitButtonMenu id="split-menu">
<MenuItem icon={Download} title="Import template" />
Expand All @@ -211,7 +212,7 @@ export const SecondarySplitButton = {
<SplitButton
children="Export to CSV"
kind={SplitButton.kinds.SECONDARY}
secondaryPositions={SplitButton.secondaryPositions.BOTTOM_MIDDLE}
secondaryDialogPosition={DialogPosition.BOTTOM_START}
secondaryDialogContent={
<SplitButtonMenu id="split-menu">
<MenuItem title="Export to PDF" />
Expand Down

0 comments on commit 2042261

Please sign in to comment.