initial work with mui

This commit is contained in:
ari committed 2022-05-24 21:12:01 -04:00
1 parent f8233dd6ab
commit 44c4ac12dd
35 files changed
+216 -145

No files matched your search

@@ -1,4 +1,5 @@
import { ComponentMeta, ComponentStory } from "@storybook/react";
import { Page } from "components/Page";
import { useState } from "react";
import { AutoInfoBox } from "./AutoInfoBox";
@@ -12,7 +13,7 @@ export default {
export const NoTags: ComponentStory<typeof AutoInfoBox> = args => {
const [[metadata, tags], setState] = useState([args.metadata, args.tags])
return (
<div className="page">
<Page>
<AutoInfoBox
className=""
metadata={metadata}
@@ -22,7 +23,7 @@ export const NoTags: ComponentStory<typeof AutoInfoBox> = args => {
setState([m, t])
}}
/>
</div>
</Page>
)
}
NoTags.args = {
@@ -3,6 +3,7 @@ import { ComponentMeta, ComponentStory } from '@storybook/react';
import { AutomationEditor } from './index';
import { useState } from 'react';
import * as dgconst from 'components/DAGFlow/constants';
import { Page } from "components/Page";
export default {
@@ -16,7 +17,7 @@ export default {
const Template: ComponentStory<typeof AutomationEditor> = args => {
const [state, setState] = useState(args.automation)
return <div className="page">
return <Page>
<AutomationEditor
{...args}
automation={state}
@@ -24,7 +25,7 @@ const Template: ComponentStory<typeof AutomationEditor> = args => {
window.setTimeout(() => setState(s), 3000)
}}
/>
</div>
</Page>
}
export const Loading = Template.bind({});