Skip to content
Snippets Groups Projects
Commit ec65b067 authored by Johanna Szepanski's avatar Johanna Szepanski
Browse files

removed duplicate files

parent 104de515
No related branches found
No related tags found
2 merge requests!497CE-2790: Prepare for 4.0.0,!418Upgrade React-scripts and Storybook
import React from "react";
import { Container } from "@mui/material";
import hosts from "../../mocks/fixtures/PagedCSEntryHostResponse.json";
import { HostTable } from "./HostTable";
import { RouterHarness } from "../../mocks/AppHarness";
export default {
title: "Host/HostTable",
component: HostTable
};
const Template = (args) => (
<RouterHarness>
<Container>
<HostTable {...args} />
</Container>
</RouterHarness>
);
export const Empty = Template.bind({});
Empty.args = {
loading: false,
hosts: [],
totalCount: 0,
rowsPerPage: [5, 10, 20, 50, 100],
lazyParams: { rows: 10, page: 0 },
columnSort: { sortField: null, sortOrder: null },
setLazyParams: () => {},
setColumnSort: () => {}
};
export const EmptyLoading = Template.bind({});
EmptyLoading.args = { ...Empty.args, loading: true };
export const Populated = Template.bind({});
Populated.args = {
...Empty.args,
totalCount: hosts.totalCount,
hosts: hosts.csEntryHosts
};
import React from "react";
import { AppHarness } from "../../mocks/AppHarness";
import { LoginView } from "./LoginView";
export default {
title: "Views/Login/LoginView",
component: LoginView
};
const Template = (args) => (
<AppHarness initialHistory={["/login"]}>
<LoginView {...args} />
</AppHarness>
);
export const Default = Template.bind({});
Default.args = {};
import React from "react";
import { StatisticsView } from "./StatisticsView";
import { AppHarness } from "../../mocks/AppHarness";
export default {
title: "Views/Statistics/StatisticsView",
component: StatisticsView
};
const Template = (args) => (
<AppHarness>
<StatisticsView {...args} />
</AppHarness>
);
export const Default = Template.bind({});
Default.args = {};
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