Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

update NoteInputs stories to use new StoryWrapper

ThieryMichel526e7155e2cb
diff --git a/src/components/atomic-crm/notes/NoteInputs.stories.tsx b/src/components/atomic-crm/notes/NoteInputs.stories.tsx
index dcd9451a..39892ade 100644
--- a/src/components/atomic-crm/notes/NoteInputs.stories.tsx
+++ b/src/components/atomic-crm/notes/NoteInputs.stories.tsx
@@ -3,10 +3,7 @@ import { Form } from "ra-core";
import { NoteInputs } from "./NoteInputs";
import { SaveButton } from "@/components/admin/form";
-import {
- createCrmDb,
- CrmStoryProvider,
-} from "@/test/browser/atomic-crm/crmUiHarness";
+import { StoryWrapper } from "@/test/StoryWrapper";
type NoteInputsStoryProps = React.ComponentProps<typeof NoteInputs> & {
defaultValues?: Record<string, unknown>;
@@ -18,12 +15,12 @@ export const NoteInputsStory = ({
withSaveButton = false,
...props
}: NoteInputsStoryProps) => (
- <CrmStoryProvider scenarioOptions={{ db: createCrmDb() }}>
+ <StoryWrapper>
<Form defaultValues={defaultValues}>
<NoteInputs {...props} />
{withSaveButton ? <SaveButton type="button" /> : null}
</Form>
- </CrmStoryProvider>
+ </StoryWrapper>
);
const meta = {