graphql-engine/frontend/libs/nx/storybook-addon-console-env/.storybook/preview.tsx
Nicolas Inchauspe c8acf12d4f console: apply new sidebar design
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7635
GitOrigin-RevId: 5f4b24d30d39a2cf2c8eb4a0d0ccc60161389303
2023-02-15 12:38:16 +00:00

26 lines
503 B
TypeScript

import React from 'react';
import { StoryFn } from '@storybook/react';
declare const window: any;
export const decorators = [
(Story: StoryFn) => (
<div>
<div>
<Story />
</div>
<pre
style={{
backgroundColor: 'DarkSlateBlue',
color: 'white',
borderRadius: '8px',
margin: '16px 0',
padding: '16px',
}}
>
window.__env = {JSON.stringify(window.__env, null, 2)}
</pre>
</div>
),
];