settings -> dark/light mode

This commit is contained in:
ari committed 2022-08-30 21:50:43 -04:00
1 parent 416d88b965
commit 03a735b281
47 files changed
+867 -736

No files matched your search

@@ -1,20 +1,15 @@
import { ComponentMeta, ComponentStory } from "@storybook/react";
import { Page } from "components/Page";
import { useState } from "react";
import { AutomationTime } from "types/automations/common";
import { InputTime } from "./InputTime";
export default {
title: "Inputs/InputTime",
component: InputTime,
parameters: { actions: { argTypesRegex: "^on.*" } },
} as ComponentMeta<typeof InputTime>;
import { makeStory } from "devUtils";
const Template: ComponentStory<typeof InputTime> = (args) => {
const [value, setValue] = useState<AutomationTime | undefined>(undefined);
return (
<Page>
const { make, componentMeta } = makeStory({
Component: InputTime,
BaseTemplate: (args) => {
const [value, setValue] = useState<AutomationTime | undefined>(undefined);
return (
<div
style={{
padding: "1em",
@@ -29,12 +24,17 @@ const Template: ComponentStory<typeof InputTime> = (args) => {
}}
/>
</div>
</Page>
);
};
);
},
meta: {
title: "Inputs/InputTime",
},
});
export const SimpleText = Template.bind({});
SimpleText.args = {
export default componentMeta;
export const Example = make({});
export const SimpleText = make({
label: "Time Stamp",
value: "10",
};
});