chore(plugins/settings): do not use deprecated types

This commit is contained in:
PalmDevs 2025-07-13 15:59:21 +07:00
parent 392179b8d3
commit d6be47d9a7
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA

View file

@ -5,13 +5,13 @@
import { Design } from '@revenge-mod/discord/design'
import { useEffect, useState } from 'react'
import type { MutableRefObject } from 'react'
import type { RefObject } from 'react'
import type { View } from 'react-native'
const { useTooltip } = Design
export let setEnablePluginTooltipVisible: ((v: boolean) => void) | undefined
export const enableTooltipTarget: MutableRefObject<View | null> = {
export const enableTooltipTarget: RefObject<View | null> = {
current: null,
}
@ -40,7 +40,7 @@ export function EnablePluginTooltipProvider({
}
export let setEssentialPluginTooltipVisible: ((v: boolean) => void) | undefined
export const essentialTooltipTarget: MutableRefObject<View | null> = {
export const essentialTooltipTarget: RefObject<View | null> = {
current: null,
}