From d7fbcff09c68c289cd6a035d7316864335a44617 Mon Sep 17 00:00:00 2001 From: Nick Lionis Date: Thu, 28 Nov 2024 22:08:00 +0700 Subject: [PATCH] fixes checker story --- src/features/checker/Checker.stories.tsx | 55 ++++++++----------- .../checker/services/checker/dataLayer.ts | 2 - 2 files changed, 24 insertions(+), 33 deletions(-) diff --git a/src/features/checker/Checker.stories.tsx b/src/features/checker/Checker.stories.tsx index 544af7b4..04b40414 100644 --- a/src/features/checker/Checker.stories.tsx +++ b/src/features/checker/Checker.stories.tsx @@ -20,39 +20,32 @@ export default meta; type Story = StoryObj; export const Default: Story = { - decorators: [ - (Story) => { - // New StoryWrapper component - const StoryWrapper = () => { - const { setEvaluationBody, isSigning, isSuccess, isEvaluating, isError, isErrorSigning } = - usePerformEvaluation(); - const { steps, setReviewBody, isReviewing } = usePerformOnChainReview(); - - return ( - - ); - }; + render(args) { + // New StoryWrapper component + const StoryWrapper = () => { + const { setEvaluationBody, isSigning, isSuccess, isEvaluating, isError, isErrorSigning } = + usePerformEvaluation(); + const { steps, setReviewBody, isReviewing } = usePerformOnChainReview(); return ( - - - + ); - }, - ], - parameters: { - // msw: { - // handlers, - // }, + }; + return ( + + + + ); }, }; diff --git a/src/features/checker/services/checker/dataLayer.ts b/src/features/checker/services/checker/dataLayer.ts index a87d861d..c28d9241 100644 --- a/src/features/checker/services/checker/dataLayer.ts +++ b/src/features/checker/services/checker/dataLayer.ts @@ -1,4 +1,3 @@ -import { syncPool } from "./api"; import { executeQuery } from "./checkerClient"; import { checkerApplicationEvaluationsQuery, checkerPoolDataQuery } from "./queries"; import { CheckerApiApplication, CheckerApiPoolData } from "./types"; @@ -8,7 +7,6 @@ export async function getCheckerPoolData( alloPoolId?: string, ): Promise { try { - await syncPool({ chainId: chainId as number, alloPoolId: alloPoolId as string }); const response = (await executeQuery(checkerPoolDataQuery, { chainId, alloPoolId,