* added font awesome * replaced GitHub logo in Footer.tsx with one provided by FontAwesome * added loader, when userStore fetching data from server * allow circular dependencies, since this is no problem * fix default (e.g. prod) profile * fix a problem, when no authenticated person calls /api/v1/user/current endpoint
5 lines
244 B
TypeScript
5 lines
244 B
TypeScript
import {RootStore} from "../store/RootStore";
|
|
import {ContextType, createContext} from "react";
|
|
|
|
export const RootStoreContext = createContext<RootStore>(new RootStore());
|
|
export type RootStoreContextType = ContextType<typeof RootStoreContext>; |