From c7666a619407ffb29a93fd3948a49470fbdf08a2 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 9 Feb 2022 13:53:42 +0100 Subject: [PATCH] Add typing for useBluelibInBody --- src/hooks/useBluelibInBody.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hooks/useBluelibInBody.tsx b/src/hooks/useBluelibInBody.tsx index e7f2c26..4470775 100644 --- a/src/hooks/useBluelibInBody.tsx +++ b/src/hooks/useBluelibInBody.tsx @@ -1,7 +1,8 @@ import { useRef, useEffect } from "react" +import { BluelibTheme } from "../types" import { useBluelib } from "./useBluelib" -export function useBluelibInBody(theme) { +export function useBluelibInBody(theme: BluelibTheme) { const ref = useRef(null) useEffect( () => {