There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
feat(component): access enviroment in components storybook (#7891)
CatsJuicec9a1a8c3b224
diff --git a/packages/frontend/component/.storybook/preview.tsx b/packages/frontend/component/.storybook/preview.tsxindex ba07da34b5..39c0bb13e3 100644--- a/packages/frontend/component/.storybook/preview.tsx+++ b/packages/frontend/component/.storybook/preview.tsx@@ -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: {