mirror of
https://github.com/Steffo99/bluelib.git
synced 2024-12-22 11:34:21 +00:00
Add typing for useBluelibInBody
This commit is contained in:
parent
d71991c1cf
commit
c7666a6194
1 changed files with 2 additions and 1 deletions
|
@ -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(
|
||||||
() => {
|
() => {
|
||||||
|
|
Loading…
Reference in a new issue