From 6195c16580e1ac92f5187ced52afd5bf3b28a0da Mon Sep 17 00:00:00 2001
From: Kristóf Marussy <kristof@marussy.com>
Date: Sun, 26 Dec 2021 20:13:17 +0100
Subject: refactor: Rename RootStore to RendererStore

---
 packages/renderer/src/components/StoreProvider.tsx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'packages/renderer/src/components/StoreProvider.tsx')

diff --git a/packages/renderer/src/components/StoreProvider.tsx b/packages/renderer/src/components/StoreProvider.tsx
index 0d9a36c..da1e699 100644
--- a/packages/renderer/src/components/StoreProvider.tsx
+++ b/packages/renderer/src/components/StoreProvider.tsx
@@ -20,11 +20,11 @@
 
 import React, { createContext, useContext } from 'react';
 
-import type { RootStore } from '../stores/RootStore';
+import type { RendererStore } from '../stores/RendererStore';
 
-const StoreContext = createContext<RootStore | null>(null);
+const StoreContext = createContext<RendererStore | null>(null);
 
-export function useStore(): RootStore {
+export function useStore(): RendererStore {
   const store = useContext(StoreContext);
   if (store === null) {
     throw new Error('useStore can only be called inside of StoreProvider');
@@ -34,7 +34,7 @@ export function useStore(): RootStore {
 
 export function StoreProvider({ children, store }: {
   children: JSX.Element | JSX.Element[],
-  store: RootStore,
+  store: RendererStore,
 }): JSX.Element {
   return (
     <StoreContext.Provider value={store}>
-- 
cgit v1.2.3-70-g09d2

