mirror of
https://github.com/luxfi/bridge.git
synced 2026-10-30 14:45:52 +00:00
26 lines
548 B
TypeScript
26 lines
548 B
TypeScript
import type { Preview } from "@storybook/react";
|
|
import "../styles/globals.css";
|
|
|
|
export const parameters = {
|
|
actions: { argTypesRegex: "^on[A-Z].*" },
|
|
};
|
|
|
|
const preview: Preview = {
|
|
loaders: [
|
|
async () => ({
|
|
settings: await (await fetch(`${process.env.NEXT_PUBLIC_BACKEND_API}/settings?version=sandbox`)).json(),
|
|
}),
|
|
],
|
|
parameters: {
|
|
actions: { argTypesRegex: "^on[A-Z].*" },
|
|
controls: {
|
|
matchers: {
|
|
color: /(background|color)$/i,
|
|
date: /Date$/,
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
export default preview;
|