mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-08 04:36:13 +08:00
feat: refactor provider
This commit is contained in:
@@ -19,11 +19,11 @@ import {
|
|||||||
StyledCloseButton,
|
StyledCloseButton,
|
||||||
StyledMenuItemWrapper,
|
StyledMenuItemWrapper,
|
||||||
} from './styles';
|
} from './styles';
|
||||||
import { useEditor } from '@/components/editor-provider';
|
import { useEditor } from '@/providers/editor-provider';
|
||||||
import EditorModeSwitch from '@/components/editor-mode-switch';
|
import EditorModeSwitch from '@/components/editor-mode-switch';
|
||||||
import { EdgelessIcon, PaperIcon } from '../editor-mode-switch/icons';
|
import { EdgelessIcon, PaperIcon } from '../editor-mode-switch/icons';
|
||||||
import ThemeModeSwitch from '@/components/theme-mode-switch';
|
import ThemeModeSwitch from '@/components/theme-mode-switch';
|
||||||
import { useModal } from '@/components/global-modal-provider';
|
import { useModal } from '@/providers/global-modal-provider';
|
||||||
import CloseIcon from '@mui/icons-material/Close';
|
import CloseIcon from '@mui/icons-material/Close';
|
||||||
import { getWarningMessage, shouldShowWarning } from './utils';
|
import { getWarningMessage, shouldShowWarning } from './utils';
|
||||||
import { Menu, MenuItem } from '@/ui/menu';
|
import { Menu, MenuItem } from '@/ui/menu';
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import {
|
|||||||
} from './icons';
|
} from './icons';
|
||||||
import { Tooltip } from '@/ui/tooltip';
|
import { Tooltip } from '@/ui/tooltip';
|
||||||
import Slide from '@mui/material/Slide';
|
import Slide from '@mui/material/Slide';
|
||||||
import { useEditor } from '@/components/editor-provider';
|
import { useEditor } from '@/providers/editor-provider';
|
||||||
|
|
||||||
const toolbarList1 = [
|
const toolbarList1 = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ import type {
|
|||||||
AnimateRadioProps,
|
AnimateRadioProps,
|
||||||
AnimateRadioItemProps,
|
AnimateRadioItemProps,
|
||||||
} from './type';
|
} from './type';
|
||||||
import { useTheme } from '@/styles';
|
import { useTheme } from '@/providers/themeProvider';
|
||||||
import { EdgelessIcon, PaperIcon } from './icons';
|
import { EdgelessIcon, PaperIcon } from './icons';
|
||||||
import { useEditor } from '@/components/editor-provider';
|
import { useEditor } from '@/providers/editor-provider';
|
||||||
|
|
||||||
const PaperItem = ({ active }: { active?: boolean }) => {
|
const PaperItem = ({ active }: { active?: boolean }) => {
|
||||||
const {
|
const {
|
||||||
|
|||||||
@@ -1,83 +1,21 @@
|
|||||||
import { useEditor } from '@/components/editor-provider';
|
import React, { useEffect, useRef } from 'react';
|
||||||
import '@blocksuite/blocks';
|
import { useEditor, initDefaultContent } from '@/providers/editor-provider';
|
||||||
import '@blocksuite/blocks/style';
|
|
||||||
import type { EditorContainer } from '@blocksuite/editor';
|
|
||||||
import { BlockSchema, createEditor } from '@blocksuite/editor';
|
|
||||||
import { forwardRef, Suspense, useEffect, useRef } from 'react';
|
|
||||||
import pkg from '../../package.json';
|
|
||||||
import exampleMarkdown from './example-markdown';
|
|
||||||
import { Store } from '@blocksuite/store';
|
|
||||||
|
|
||||||
// eslint-disable-next-line react/display-name
|
|
||||||
const BlockSuiteEditor = forwardRef<EditorContainer>(({}, ref) => {
|
|
||||||
const containerElement = useRef<HTMLDivElement>(null);
|
|
||||||
useEffect(() => {
|
|
||||||
if (!containerElement.current) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const store = new Store({
|
|
||||||
// ...getEditorParams(),
|
|
||||||
});
|
|
||||||
const space = store.createSpace('page0').register(BlockSchema);
|
|
||||||
const editor = createEditor(space);
|
|
||||||
|
|
||||||
containerElement.current.appendChild(editor);
|
|
||||||
if (ref) {
|
|
||||||
if ('current' in ref) {
|
|
||||||
ref.current = editor;
|
|
||||||
} else {
|
|
||||||
ref(editor);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return () => {
|
|
||||||
editor.remove();
|
|
||||||
};
|
|
||||||
}, [ref]);
|
|
||||||
return <div id="editor" style={{ height: '100%' }} ref={containerElement} />;
|
|
||||||
});
|
|
||||||
|
|
||||||
export const Editor = () => {
|
export const Editor = () => {
|
||||||
const editorRef = useRef<EditorContainer>(null);
|
const editorContainer = useRef<HTMLDivElement>(null);
|
||||||
const { setEditor } = useEditor();
|
const { editor } = useEditor();
|
||||||
|
const ref = useRef<any>();
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!editorRef.current) {
|
if (editor && ref.current?.space.id !== editor?.space.id) {
|
||||||
return;
|
ref.current?.remove();
|
||||||
|
ref.current = editor;
|
||||||
|
|
||||||
|
editorContainer.current?.appendChild(editor);
|
||||||
|
|
||||||
|
initDefaultContent(editor);
|
||||||
}
|
}
|
||||||
setEditor(editorRef.current);
|
}, [editor]);
|
||||||
const { space } = editorRef.current as EditorContainer;
|
return <div id="editor" ref={editorContainer}></div>;
|
||||||
const pageId = space.addBlock({
|
|
||||||
flavour: 'affine:page',
|
|
||||||
title: 'Welcome to the AFFiNE Alpha',
|
|
||||||
});
|
|
||||||
const groupId = space.addBlock({ flavour: 'affine:group' }, pageId);
|
|
||||||
editorRef.current.clipboard.importMarkdown(exampleMarkdown, `${groupId}`);
|
|
||||||
space.resetHistory();
|
|
||||||
}, [setEditor]);
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
const version = pkg.dependencies['@blocksuite/editor'].substring(1);
|
|
||||||
console.log(`BlockSuite live demo ${version}`);
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
return (
|
|
||||||
<Suspense fallback={<div>Error!</div>}>
|
|
||||||
<BlockSuiteEditor ref={editorRef} />
|
|
||||||
</Suspense>
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
declare global {
|
|
||||||
interface HTMLElementTagNameMap {
|
|
||||||
'editor-container': EditorContainer;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace JSX {
|
|
||||||
interface IntrinsicElements {
|
|
||||||
// TODO fix types on react
|
|
||||||
'editor-container': EditorContainer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export default Editor;
|
export default Editor;
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import {
|
|||||||
import { CloseIcon, ContactIcon, HelpIcon, KeyboardIcon } from './icons';
|
import { CloseIcon, ContactIcon, HelpIcon, KeyboardIcon } from './icons';
|
||||||
import Grow from '@mui/material/Grow';
|
import Grow from '@mui/material/Grow';
|
||||||
import { Tooltip } from '@/ui/tooltip';
|
import { Tooltip } from '@/ui/tooltip';
|
||||||
import { useEditor } from '@/components/editor-provider';
|
import { useEditor } from '@/providers/editor-provider';
|
||||||
import { useModal } from '@/components/global-modal-provider';
|
import { useModal } from '@/providers/global-modal-provider';
|
||||||
import { useTheme } from '@/styles';
|
import { useTheme } from '@/providers/themeProvider';
|
||||||
|
|
||||||
export const FAQ = () => {
|
export const FAQ = () => {
|
||||||
const [showContent, setShowContent] = useState(false);
|
const [showContent, setShowContent] = useState(false);
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { useTheme } from '@/styles';
|
import { useTheme } from '@/providers/themeProvider';
|
||||||
import { MoonIcon, SunIcon } from './icons';
|
import { MoonIcon, SunIcon } from './icons';
|
||||||
import { StyledThemeModeSwitch, StyledSwitchItem } from './style';
|
import { StyledThemeModeSwitch, StyledSwitchItem } from './style';
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ import dynamic from 'next/dynamic';
|
|||||||
import '../../public/globals.css';
|
import '../../public/globals.css';
|
||||||
import '../../public/variable.css';
|
import '../../public/variable.css';
|
||||||
import './temporary.css';
|
import './temporary.css';
|
||||||
import { EditorProvider } from '@/components/editor-provider';
|
import { EditorProvider } from '@/providers/editor-provider';
|
||||||
import { ModalProvider } from '@/components/global-modal-provider';
|
import { ModalProvider } from '@/providers/global-modal-provider';
|
||||||
import { Logger } from '@toeverything/pathfinder-logger';
|
import { Logger } from '@toeverything/pathfinder-logger';
|
||||||
import { WorkSpaceSliderBar } from '@/components/workspace-slider-bar';
|
import { WorkSpaceSliderBar } from '@/components/workspace-slider-bar';
|
||||||
import '@fontsource/space-mono';
|
import '@fontsource/space-mono';
|
||||||
@@ -14,7 +14,7 @@ import { styled } from '@/styles';
|
|||||||
import type { ReactNode, PropsWithChildren, FC } from 'react';
|
import type { ReactNode, PropsWithChildren, FC } from 'react';
|
||||||
import { cloneElement } from 'react';
|
import { cloneElement } from 'react';
|
||||||
|
|
||||||
const ThemeProvider = dynamic(() => import('@/styles/themeProvider'), {
|
const ThemeProvider = dynamic(() => import('@/providers/themeProvider'), {
|
||||||
ssr: false,
|
ssr: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -52,7 +52,6 @@ function MyApp({ Component, pageProps }: AppProps) {
|
|||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<StyledPage>
|
<StyledPage>
|
||||||
{/*<TestEditor />*/}
|
|
||||||
<WorkSpaceSliderBar />
|
<WorkSpaceSliderBar />
|
||||||
<Component {...pageProps} />
|
<Component {...pageProps} />
|
||||||
</StyledPage>
|
</StyledPage>
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import type { NextPage } from 'next';
|
import type { NextPage } from 'next';
|
||||||
import dynamic from 'next/dynamic';
|
|
||||||
import { styled } from '@/styles';
|
import { styled } from '@/styles';
|
||||||
import { Header } from '@/components/Header';
|
import { Header } from '@/components/Header';
|
||||||
import { FAQ } from '@/components/faq';
|
import { FAQ } from '@/components/faq';
|
||||||
import Loading from '@/components/loading';
|
|
||||||
import EdgelessToolbar from '@/components/edgeless-toolbar';
|
import EdgelessToolbar from '@/components/edgeless-toolbar';
|
||||||
import MobileModal from '@/components/mobile-modal';
|
import MobileModal from '@/components/mobile-modal';
|
||||||
|
import Editor from '@/components/editor';
|
||||||
|
|
||||||
import '@/components/simple-counter';
|
import '@/components/simple-counter';
|
||||||
|
|
||||||
const StyledEditorContainer = styled('div')(({ theme }) => {
|
const StyledEditorContainer = styled('div')(({ theme }) => {
|
||||||
@@ -23,40 +23,13 @@ const StyledWrapper = styled('div')(({ theme }) => {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
const StyledLoadingContainer = styled('div')(({ theme }) => {
|
|
||||||
return {
|
|
||||||
height: '100vh',
|
|
||||||
display: 'flex',
|
|
||||||
justifyContent: 'center',
|
|
||||||
alignItems: 'center',
|
|
||||||
color: theme.colors.primaryColor,
|
|
||||||
h1: {
|
|
||||||
fontSize: '2em',
|
|
||||||
marginTop: '150px',
|
|
||||||
fontWeight: '600',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
const DynamicEditor = dynamic(() => import('../components/editor'), {
|
|
||||||
loading: () => (
|
|
||||||
<StyledLoadingContainer>
|
|
||||||
<div className="wrapper">
|
|
||||||
<Loading />
|
|
||||||
<h1>Loading...</h1>
|
|
||||||
</div>
|
|
||||||
</StyledLoadingContainer>
|
|
||||||
),
|
|
||||||
ssr: false,
|
|
||||||
});
|
|
||||||
|
|
||||||
const Home: NextPage = () => {
|
const Home: NextPage = () => {
|
||||||
return (
|
return (
|
||||||
<StyledWrapper>
|
<StyledWrapper>
|
||||||
<Header />
|
<Header />
|
||||||
<MobileModal />
|
<MobileModal />
|
||||||
<StyledEditorContainer>
|
<StyledEditorContainer>
|
||||||
<DynamicEditor />
|
<Editor />
|
||||||
</StyledEditorContainer>
|
</StyledEditorContainer>
|
||||||
<FAQ />
|
<FAQ />
|
||||||
<EdgelessToolbar />
|
<EdgelessToolbar />
|
||||||
|
|||||||
+9
-5
@@ -1,12 +1,16 @@
|
|||||||
import type { EditorContainer } from '@blocksuite/editor';
|
import type { EditorContainer } from '@blocksuite/editor';
|
||||||
|
|
||||||
import { createContext, useContext, useEffect, useState } from 'react';
|
import { createContext, useContext, useEffect, useState } from 'react';
|
||||||
import type { PropsWithChildren } from 'react';
|
import type { PropsWithChildren } from 'react';
|
||||||
|
import dynamic from 'next/dynamic';
|
||||||
|
import Loading from './loading';
|
||||||
|
|
||||||
|
const DynamicEditor = dynamic(() => import('./initial-editor'), {
|
||||||
|
ssr: false,
|
||||||
|
});
|
||||||
|
|
||||||
type EditorContextValue = {
|
type EditorContextValue = {
|
||||||
editor: EditorContainer | null;
|
editor: EditorContainer | null;
|
||||||
mode: EditorContainer['mode'];
|
mode: EditorContainer['mode'];
|
||||||
setEditor: (editor: EditorContainer) => void;
|
|
||||||
setMode: (mode: EditorContainer['mode']) => void;
|
setMode: (mode: EditorContainer['mode']) => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -15,7 +19,6 @@ type EditorContextProps = PropsWithChildren<{}>;
|
|||||||
export const EditorContext = createContext<EditorContextValue>({
|
export const EditorContext = createContext<EditorContextValue>({
|
||||||
editor: null,
|
editor: null,
|
||||||
mode: 'page',
|
mode: 'page',
|
||||||
setEditor: () => {},
|
|
||||||
setMode: () => {},
|
setMode: () => {},
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -33,8 +36,9 @@ export const EditorProvider = ({
|
|||||||
}, [mode]);
|
}, [mode]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<EditorContext.Provider value={{ editor, setEditor, mode, setMode }}>
|
<EditorContext.Provider value={{ editor, mode, setMode }}>
|
||||||
{children}
|
<DynamicEditor setEditor={setEditor} />
|
||||||
|
{editor ? children : <Loading />}
|
||||||
</EditorContext.Provider>
|
</EditorContext.Provider>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
const exampleMarkdown = `The AFFiNE Alpha is here! You can also view our [Official Website](https://affine.pro/)!
|
export const exampleMarkdown = `The AFFiNE Alpha is here! You can also view our [Official Website](https://affine.pro/)!
|
||||||
|
|
||||||
**What's different in AFFiNE Alpha?**
|
**What's different in AFFiNE Alpha?**
|
||||||
|
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
export * from './editor-provider';
|
||||||
|
export * from './example-markdown';
|
||||||
|
export * from './utils';
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
import '@blocksuite/blocks';
|
||||||
|
import '@blocksuite/blocks/style';
|
||||||
|
import type { EditorContainer } from '@blocksuite/editor';
|
||||||
|
import { BlockSchema, createEditor } from '@blocksuite/editor';
|
||||||
|
import { useEffect } from 'react';
|
||||||
|
import pkg from '../../../package.json';
|
||||||
|
import { createWebsocketDocProvider, Store } from '@blocksuite/store';
|
||||||
|
|
||||||
|
const getEditorParams = () => {
|
||||||
|
const providers = [];
|
||||||
|
const params = new URLSearchParams(location.search);
|
||||||
|
if (params.get('syncModes') === 'websocket') {
|
||||||
|
const WebsocketDocProvider = createWebsocketDocProvider(
|
||||||
|
'ws://127.0.0.1:3000/collaboration/AFFiNE'
|
||||||
|
);
|
||||||
|
providers.push(WebsocketDocProvider);
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
providers,
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
const InitialEditor = ({
|
||||||
|
setEditor,
|
||||||
|
}: {
|
||||||
|
setEditor: (editor: EditorContainer) => void;
|
||||||
|
}) => {
|
||||||
|
useEffect(() => {
|
||||||
|
const store = new Store({
|
||||||
|
...getEditorParams(),
|
||||||
|
});
|
||||||
|
const space = store.createSpace('page0').register(BlockSchema);
|
||||||
|
const editor = createEditor(space);
|
||||||
|
|
||||||
|
setEditor(editor);
|
||||||
|
|
||||||
|
return () => {
|
||||||
|
editor.remove();
|
||||||
|
};
|
||||||
|
}, [setEditor]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
const version = pkg.dependencies['@blocksuite/editor'].substring(1);
|
||||||
|
console.log(`BlockSuite live demo ${version}`);
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
return <div />;
|
||||||
|
};
|
||||||
|
|
||||||
|
export default InitialEditor;
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
import { styled } from '@/styles';
|
||||||
|
import CommonLoading from '@/components/loading';
|
||||||
|
|
||||||
|
const StyledLoadingContainer = styled('div')(({ theme }) => {
|
||||||
|
return {
|
||||||
|
height: '100vh',
|
||||||
|
display: 'flex',
|
||||||
|
justifyContent: 'center',
|
||||||
|
alignItems: 'center',
|
||||||
|
color: '#6880FF',
|
||||||
|
h1: {
|
||||||
|
fontSize: '2em',
|
||||||
|
marginTop: '150px',
|
||||||
|
fontWeight: '600',
|
||||||
|
},
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
export const Loading = () => {
|
||||||
|
return (
|
||||||
|
<StyledLoadingContainer>
|
||||||
|
<div className="wrapper">
|
||||||
|
<CommonLoading />
|
||||||
|
<h1>Loading...</h1>
|
||||||
|
</div>
|
||||||
|
</StyledLoadingContainer>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Loading;
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
import { EditorContainer } from '@blocksuite/editor';
|
||||||
|
import exampleMarkdown from '@/providers/editor-provider/example-markdown';
|
||||||
|
|
||||||
|
export const initDefaultContent = (editor: EditorContainer) => {
|
||||||
|
const { space } = editor;
|
||||||
|
const pageId = space.addBlock({
|
||||||
|
flavour: 'affine:page',
|
||||||
|
title: 'Welcome to the AFFiNE Alpha',
|
||||||
|
});
|
||||||
|
const groupId = space.addBlock({ flavour: 'affine:group' }, pageId);
|
||||||
|
editor.clipboard.importMarkdown(exampleMarkdown, `${groupId}`);
|
||||||
|
space.resetHistory();
|
||||||
|
};
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
import { createContext, useContext, useState } from 'react';
|
import { createContext, useContext, useState } from 'react';
|
||||||
import type { PropsWithChildren } from 'react';
|
import type { PropsWithChildren } from 'react';
|
||||||
import ShortcutsModal from './shortcuts-modal';
|
import ShortcutsModal from '@/components/shortcuts-modal';
|
||||||
import ContactModal from '@/components/contact-modal';
|
import ContactModal from '@/components/contact-modal';
|
||||||
|
|
||||||
type ModalContextValue = {
|
type ModalContextValue = {
|
||||||
+11
-5
@@ -3,17 +3,21 @@ import {
|
|||||||
Global,
|
Global,
|
||||||
css,
|
css,
|
||||||
} from '@emotion/react';
|
} from '@emotion/react';
|
||||||
import { createContext, useEffect, useState } from 'react';
|
import { createContext, useContext, useEffect, useState } from 'react';
|
||||||
import type { PropsWithChildren } from 'react';
|
import type { PropsWithChildren } from 'react';
|
||||||
import {
|
import {
|
||||||
Theme,
|
Theme,
|
||||||
ThemeMode,
|
ThemeMode,
|
||||||
ThemeProviderProps,
|
ThemeProviderProps,
|
||||||
ThemeProviderValue,
|
ThemeProviderValue,
|
||||||
} from './types';
|
} from '@/styles/types';
|
||||||
import { getLightTheme, getDarkTheme, globalThemeVariables } from './theme';
|
import {
|
||||||
import { SystemThemeHelper, localStorageThemeHelper } from './utils';
|
getLightTheme,
|
||||||
import { useEditor } from '@/components/editor-provider';
|
getDarkTheme,
|
||||||
|
globalThemeVariables,
|
||||||
|
} from '@/styles/theme';
|
||||||
|
import { SystemThemeHelper, localStorageThemeHelper } from '@/styles/utils';
|
||||||
|
import { useEditor } from '@/providers/editor-provider';
|
||||||
|
|
||||||
export const ThemeContext = createContext<ThemeProviderValue>({
|
export const ThemeContext = createContext<ThemeProviderValue>({
|
||||||
mode: 'light',
|
mode: 'light',
|
||||||
@@ -21,6 +25,8 @@ export const ThemeContext = createContext<ThemeProviderValue>({
|
|||||||
theme: getLightTheme('page'),
|
theme: getLightTheme('page'),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
export const useTheme = () => useContext(ThemeContext);
|
||||||
|
|
||||||
export const ThemeProvider = ({
|
export const ThemeProvider = ({
|
||||||
defaultTheme = 'light',
|
defaultTheme = 'light',
|
||||||
children,
|
children,
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
import { useContext } from 'react';
|
|
||||||
import { ThemeContext } from './themeProvider';
|
|
||||||
|
|
||||||
export const useTheme = () => useContext(ThemeContext);
|
|
||||||
@@ -1,7 +1,5 @@
|
|||||||
export type { ThemeMode, ThemeProviderProps, AffineTheme } from './types';
|
export type { ThemeMode, ThemeProviderProps, AffineTheme } from './types';
|
||||||
|
|
||||||
export * from './styled';
|
export * from './styled';
|
||||||
export { ThemeProvider } from './themeProvider';
|
|
||||||
export * from './theme';
|
export * from './theme';
|
||||||
export { useTheme } from './hooks';
|
|
||||||
export * from './helper';
|
export * from './helper';
|
||||||
|
|||||||
Reference in New Issue
Block a user