diff options
Diffstat (limited to 'subprojects/frontend/src/RootStore.tsx')
-rw-r--r-- | subprojects/frontend/src/RootStore.tsx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/subprojects/frontend/src/RootStore.tsx b/subprojects/frontend/src/RootStore.tsx index baf0b61e..a7406d7b 100644 --- a/subprojects/frontend/src/RootStore.tsx +++ b/subprojects/frontend/src/RootStore.tsx | |||
@@ -1,9 +1,9 @@ | |||
1 | import React, { createContext, useContext } from 'react'; | 1 | import React, { createContext, useContext } from 'react'; |
2 | 2 | ||
3 | import { EditorStore } from './editor/EditorStore'; | 3 | import EditorStore from './editor/EditorStore'; |
4 | import { ThemeStore } from './theme/ThemeStore'; | 4 | import ThemeStore from './theme/ThemeStore'; |
5 | 5 | ||
6 | export class RootStore { | 6 | export default class RootStore { |
7 | editorStore; | 7 | editorStore; |
8 | 8 | ||
9 | themeStore; | 9 | themeStore; |
@@ -22,11 +22,12 @@ export interface RootStoreProviderProps { | |||
22 | rootStore: RootStore; | 22 | rootStore: RootStore; |
23 | } | 23 | } |
24 | 24 | ||
25 | export function RootStoreProvider({ children, rootStore }: RootStoreProviderProps): JSX.Element { | 25 | export function RootStoreProvider({ |
26 | children, | ||
27 | rootStore, | ||
28 | }: RootStoreProviderProps): JSX.Element { | ||
26 | return ( | 29 | return ( |
27 | <StoreContext.Provider value={rootStore}> | 30 | <StoreContext.Provider value={rootStore}>{children}</StoreContext.Provider> |
28 | {children} | ||
29 | </StoreContext.Provider> | ||
30 | ); | 31 | ); |
31 | } | 32 | } |
32 | 33 | ||