Skip to content

Commit c9a1a8c

Browse files
committed
feat(component): access enviroment in components storybook (#7891)
close AF-1247
1 parent a49b92e commit c9a1a8c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/frontend/component/.storybook/preview.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ import { useDarkMode } from 'storybook-dark-mode';
99
import type { Preview } from '@storybook/react';
1010
import React from 'react';
1111
import { ConfirmModalProvider } from '../src/ui/modal/confirm-modal';
12+
import { setupGlobal } from '@affine/env/global';
13+
14+
setupGlobal();
1215

1316
export const parameters: Preview = {
1417
argTypes: {

0 commit comments

Comments
 (0)