mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
ref: add providers to the story previews
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import type { Preview } from "@storybook/react";
|
||||
import { initialize, mswLoader } from "msw-storybook-addon";
|
||||
import "../src/app/globals.css";
|
||||
|
||||
import { Providers } from "../src/app/providers";
|
||||
// Initialize MSW
|
||||
import React from "react";
|
||||
initialize();
|
||||
|
||||
const preview: Preview = {
|
||||
@@ -18,6 +19,16 @@ const preview: Preview = {
|
||||
},
|
||||
},
|
||||
loaders: [mswLoader],
|
||||
decorators: [
|
||||
(Story) => {
|
||||
return (
|
||||
<Providers>
|
||||
<Story />
|
||||
</Providers>
|
||||
);
|
||||
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export default preview;
|
||||
Reference in New Issue
Block a user