aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/RootStore.tsx
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-08-12 19:54:46 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-08-12 19:54:46 +0200
commitd22c3b0c257f5daf5b401988a35ab9ce981a2341 (patch)
tree0a661c927c37b52197326d1c05e211daf9bd19e5 /subprojects/frontend/src/RootStore.tsx
parentfix(language): rule parsing test (diff)
downloadrefinery-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.tsx15
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 @@
1import React, { createContext, useContext } from 'react'; 1import React, { createContext, useContext } from 'react';
2 2
3import { EditorStore } from './editor/EditorStore'; 3import EditorStore from './editor/EditorStore';
4import { ThemeStore } from './theme/ThemeStore'; 4import ThemeStore from './theme/ThemeStore';
5 5
6export class RootStore { 6export 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
25export function RootStoreProvider({ children, rootStore }: RootStoreProviderProps): JSX.Element { 25export 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