fixed typos + uppd storybook
This commit is contained in:
1 parent
4b3028355d
commit
81bd15436e
6 files changed
+612
-517
No files matched your search
@@ -4,7 +4,7 @@ import { AutomationListBox } from "./AutomationListBox";
|
||||
import { createMockAuto } from "utils/mocks";
|
||||
|
||||
export default {
|
||||
title: 'App/AutomationListBox',
|
||||
title: 'App/AutomationList/Box',
|
||||
component: AutomationListBox,
|
||||
parameters: { actions: { argTypesRegex: '^on.*' } },
|
||||
args: {
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { ComponentMeta, ComponentStory } from "@storybook/react";
|
||||
import { ConnectedAutmationList } from ".";
|
||||
import { ConnectedAutomationList } from ".";
|
||||
import { NODE_HEIGHT, NODE_WIDTH, ADD_HEIGHT, ADD_WIDTH, CIRCLE_SIZE, DISTANCE_FACTOR } from 'components/DAGSvgs/constants';
|
||||
import { createMockAuto } from "utils/mocks";
|
||||
import { useMockApiService } from "apiService";
|
||||
|
||||
export default {
|
||||
title: 'App/ConnectedAutmationList',
|
||||
component: ConnectedAutmationList,
|
||||
title: 'App/AutomationList/Connected',
|
||||
component: ConnectedAutomationList,
|
||||
parameters: { actions: { argTypesRegex: '^on.*' } },
|
||||
args: {
|
||||
dims: {
|
||||
@@ -19,13 +19,13 @@ export default {
|
||||
},
|
||||
initialAutomations: [],
|
||||
}
|
||||
} as ComponentMeta<typeof ConnectedAutmationList>;
|
||||
} as ComponentMeta<typeof ConnectedAutomationList>;
|
||||
|
||||
|
||||
const Template: ComponentStory<any> = args => {
|
||||
const api = useMockApiService(args.initialAutomations);
|
||||
return <div className="page">
|
||||
<ConnectedAutmationList
|
||||
<ConnectedAutomationList
|
||||
{...args}
|
||||
api={api}
|
||||
/>
|
||||
|
||||
@@ -62,11 +62,11 @@ export const AutomationList: FC<AutomationListParams> = ({
|
||||
</div>
|
||||
}
|
||||
|
||||
interface ConnectedAutmationListParams {
|
||||
interface ConnectedAutomationListParams {
|
||||
dims: DAGBoardElmDims;
|
||||
api: ApiService;
|
||||
}
|
||||
export const ConnectedAutmationList: FC<ConnectedAutmationListParams> = ({
|
||||
export const ConnectedAutomationList: FC<ConnectedAutomationListParams> = ({
|
||||
api: {
|
||||
state: {
|
||||
automations,
|
||||
|
||||
Reference in new issue
Block a user