refactor: move WorkspaceCard (#1803)

This commit is contained in:
Himself65 authored and GitHub committed 2023-04-03 18:13:43 -05:00
1 parent dbcadbaf60
commit 9a20f50b05
16 files changed
+143 -25

No files matched your search

+6
View File
@@ -1,6 +1,7 @@
import type { StorybookConfig } from '@storybook/react-vite';
import { fileURLToPath } from 'node:url';
import { mergeConfig } from 'vite';
import tsconfigPaths from 'vite-tsconfig-paths';
export default {
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
@@ -15,6 +16,11 @@ export default {
},
async viteFinal(config, { configType }) {
return mergeConfig(config, {
plugins: [
tsconfigPaths({
root: fileURLToPath(new URL('../../../', import.meta.url)),
}),
],
define: {
'process.env': {},
},
@@ -1,5 +1,6 @@
import React from 'react';
import '@blocksuite/editor/themes/affine.css';
import '../src/theme/global.css';
import { getDarkTheme, getLightTheme, ThemeProvider } from '@affine/component';
import { useDarkMode } from 'storybook-dark-mode';