Skip to content

Commit

Permalink
fix story
Browse files Browse the repository at this point in the history
Signed-off-by: hemahg <[email protected]>
  • Loading branch information
hemahg authored and MikeEdgar committed Oct 17, 2024
1 parent 85a0a3f commit ae3275c
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions ui/components/ClusterOverview/PageLayout.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { composeStories } from "@storybook/react";
import * as ClusterCardStories from "./ClusterCard.stories";
import { PageLayout } from "./PageLayout";
import * as TopicsPartitionsCardStories from "./TopicsPartitionsCard.stories";
import { ReconciliationContext } from "../ReconciliationContext";

const { WithData: ClusterWithData } = composeStories(ClusterCardStories);
const { WithData: TopicsPartitionsWithData } = composeStories(
Expand Down Expand Up @@ -30,12 +31,19 @@ export const WithData: Story = {
};
export const Loading: Story = {
render: (args) => (
<PageLayout
{...args}
clusterOverview={<Everloading />}
clusterCharts={<Everloading />}
topicsPartitions={<Everloading />}
/>
<ReconciliationContext.Provider
value={{
isReconciliationPaused: false,
setReconciliationPaused: () => { },
}}
>
<PageLayout
{...args}
clusterOverview={<Everloading />}
clusterCharts={<Everloading />}
topicsPartitions={<Everloading />}
/>
</ReconciliationContext.Provider>
),
};

Expand Down

0 comments on commit ae3275c

Please sign in to comment.