mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
feat(component): access enviroment in components storybook (#7891)
close AF-1247
This commit is contained in:
@@ -9,6 +9,9 @@ import { useDarkMode } from 'storybook-dark-mode';
|
||||
import type { Preview } from '@storybook/react';
|
||||
import React from 'react';
|
||||
import { ConfirmModalProvider } from '../src/ui/modal/confirm-modal';
|
||||
import { setupGlobal } from '@affine/env/global';
|
||||
|
||||
setupGlobal();
|
||||
|
||||
export const parameters: Preview = {
|
||||
argTypes: {
|
||||
|
||||
Reference in New Issue
Block a user