From 40ebe0088bc97f644889d915b0524b49d4a21e4c Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Fri, 19 Nov 2021 20:17:56 +0100 Subject: build: upgrade to yarn 3 Also upgrades various frontend dependencies. We can't upgrade to typescript 4.5 yet, because https://github.com/yarnpkg/berry/pull/3760 is not released yet. --- language-web/src/main/js/RootStore.tsx | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'language-web/src/main/js/RootStore.tsx') diff --git a/language-web/src/main/js/RootStore.tsx b/language-web/src/main/js/RootStore.tsx index 96e1b26a..baf0b61e 100644 --- a/language-web/src/main/js/RootStore.tsx +++ b/language-web/src/main/js/RootStore.tsx @@ -16,11 +16,19 @@ export class RootStore { const StoreContext = createContext(undefined); -export const RootStoreProvider: React.FC<{ rootStore: RootStore }> = ({ children, rootStore }) => ( - - {children} - -); +export interface RootStoreProviderProps { + children: JSX.Element; + + rootStore: RootStore; +} + +export function RootStoreProvider({ children, rootStore }: RootStoreProviderProps): JSX.Element { + return ( + + {children} + + ); +} export const useRootStore = (): RootStore => { const rootStore = useContext(StoreContext); -- cgit v1.2.3-70-g09d2