diff --git a/src/components/Farmhand/Farmhand.context.js b/src/components/Farmhand/Farmhand.context.js index b44d01739..1f00b0a4f 100644 --- a/src/components/Farmhand/Farmhand.context.js +++ b/src/components/Farmhand/Farmhand.context.js @@ -5,6 +5,9 @@ */ import { createContext } from 'react' +// eslint-disable-next-line no-unused-vars +import uiEventHandlers from '../../handlers/ui-events' + /** * @type {import('react').Context<{ * gameState: farmhand.state & { @@ -20,7 +23,7 @@ import { createContext } from 'react' * viewList: string[], * viewTitle: string, * } - * handlers: Record void> + * handlers: uiEventHandlers * }>} */ // @ts-expect-error diff --git a/src/components/FermentationRecipeList/FermentationRecipe.js b/src/components/FermentationRecipeList/FermentationRecipe.js index e441ab0aa..669e80b22 100644 --- a/src/components/FermentationRecipeList/FermentationRecipe.js +++ b/src/components/FermentationRecipeList/FermentationRecipe.js @@ -48,9 +48,7 @@ const getRecipesInstancesInCellar = memoize( export const FermentationRecipe = ({ item }) => { const { gameState: { inventory, cellarInventory, purchasedCellar }, - handlers: { - /** @type {function(item, number)} */ handleMakeFermentationRecipeClick, - }, + handlers: { handleMakeFermentationRecipeClick }, } = useContext(FarmhandContext) const [quantity, setQuantity] = useState(1)