diff options
author | 2022-08-12 19:54:46 +0200 | |
---|---|---|
committer | 2022-08-12 19:54:46 +0200 | |
commit | d22c3b0c257f5daf5b401988a35ab9ce981a2341 (patch) | |
tree | 0a661c927c37b52197326d1c05e211daf9bd19e5 /subprojects/frontend/src/RootStore.tsx | |
parent | fix(language): rule parsing test (diff) | |
download | refinery-d22c3b0c257f5daf5b401988a35ab9ce981a2341.tar.gz refinery-d22c3b0c257f5daf5b401988a35ab9ce981a2341.tar.zst refinery-d22c3b0c257f5daf5b401988a35ab9ce981a2341.zip |
refactor(frontend): move from Webpack to Vite
Also overhaulds the building and linting for frontend assets.
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 | ||