Skip to content
Snippets Groups Projects

ICSHWI-11707 - Move stories to separate directory

Merged Alexander Madsen requested to merge icshwi-11707-move-stories-to-separate-directory into develop
1 file
+ 12
5
Compare changes
  • Side-by-side
  • Inline
import React from "react";
import { Container, ThemeProvider } from "@material-ui/core";
import { theme } from "../../../style/Theme";
import { PrimeKeyValueTable } from "./PrimeKeyValueTable";
import { theme } from "../../../../style/Theme";
import { PrimeKeyValueTable } from "../../../../components/common/PrimeKeyValueTable/PrimeKeyValueTable";
import { disabledTable } from "../../../utils/common-args";
export default {
title: "Common/PrimeKeyValueTable",
component: PrimeKeyValueTable
title: "Common/PrimeKeyValueTable"
};
const Template = (args) => (
@@ -16,9 +16,16 @@ const Template = (args) => (
</ThemeProvider>
);
export const Example = Template.bind({});
export const Example = (args) => <Template {...args} />;
Example.args = {
obj: { "The first statistic": 102, "The second statistic": 7.6 },
labels: ["External Statistics"],
valueWidth: "15ch"
};
Example.argTypes = {
obj: disabledTable,
labels: disabledTable,
valueWidth: disabledTable
};
Loading