From cc942849f6e69826b8fda7d5a6a197fec2970a75 Mon Sep 17 00:00:00 2001 From: Johanna Szepanski <johanna.szepanski@softhouse.se> Date: Tue, 11 Jun 2024 12:55:53 +0200 Subject: [PATCH] removed duplicate host table story --- src/components/host/HostTable.stories.js | 40 ------------------------ 1 file changed, 40 deletions(-) delete mode 100644 src/components/host/HostTable.stories.js diff --git a/src/components/host/HostTable.stories.js b/src/components/host/HostTable.stories.js deleted file mode 100644 index 820badcf..00000000 --- a/src/components/host/HostTable.stories.js +++ /dev/null @@ -1,40 +0,0 @@ -import React from "react"; -import { Container } from "@mui/material"; -import hosts from "../../mocks/fixtures/PagedNetBoxHostResponse.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.netBoxHosts -}; -- GitLab