Skip to content

Commit

Permalink
📝 - docs: further improvements to Kanban(Template) stories
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvandescheur committed Oct 18, 2024
1 parent f96316c commit 460ec09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/components/data/kanban/kanban.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const AdditionalFields: Story = {
},
};

export const WithCustomPreview: Story = {
export const CustomPreview: Story = {
...KanbanComponent,
// @ts-expect-error - Fix never
args: {
Expand All @@ -76,6 +76,7 @@ export const WithCustomPreview: Story = {
alt={attributeData.title}
src="/static/maykin_logo.png"
height="24"
style={{ objectFit: "contain" }}
/>
),
},
Expand Down
6 changes: 3 additions & 3 deletions src/templates/kanban/kanban.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import * as React from "react";

import { Badge, Outline } from "../../components";
import {
CustomPreview as CustomPreviewComponentStory,
Draggable as DraggableComponentStory,
KanbanComponent as KanbanComponentStory,
WithCustomPreview as WithCustomPreviewComponentStory,
WithToolbar as WithToolbarComponentStory,
} from "../../components/data/kanban/kanban.stories";
import { KanbanTemplate } from "./kanban";
Expand Down Expand Up @@ -120,11 +120,11 @@ export const WithSecondaryNavigation: Story = {
},
};

export const WithCustomPreview: Story = {
export const CustomPreview: Story = {
...kanbanTemplate,
args: {
...kanbanTemplate.args,
kanbanProps: WithCustomPreviewComponentStory.args,
kanbanProps: CustomPreviewComponentStory.args,
},
};

Expand Down

0 comments on commit 460ec09

Please sign in to comment.