mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
c8acf12d4f
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7635 GitOrigin-RevId: 5f4b24d30d39a2cf2c8eb4a0d0ccc60161389303
26 lines
503 B
TypeScript
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>
|
|
),
|
|
];
|