1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-22 19:44:21 +00:00

Add typing for useBluelibInBody

This commit is contained in:
Steffo 2022-02-09 13:53:42 +01:00
parent d71991c1cf
commit c7666a6194
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -1,7 +1,8 @@
import { useRef, useEffect } from "react" import { useRef, useEffect } from "react"
import { BluelibTheme } from "../types"
import { useBluelib } from "./useBluelib" import { useBluelib } from "./useBluelib"
export function useBluelibInBody(theme) { export function useBluelibInBody(theme: BluelibTheme) {
const ref = useRef<HTMLBodyElement | null>(null) const ref = useRef<HTMLBodyElement | null>(null)
useEffect( useEffect(
() => { () => {