Skip to content
Snippets Groups Projects
Commit 5e4d65f2 authored by Alexander Madsen's avatar Alexander Madsen
Browse files

Moved PrimeKeyValueTable story to own directory

parent f14e009d
No related branches found
No related tags found
1 merge request!254ICSHWI-11707 - Move stories to separate directory
This commit is part of merge request !254. Comments created here will be created in the context of that merge request.
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
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment