mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-18 13:20:43 +00:00
Fixed warnings from React imports (sorry, Tim)
This commit is contained in:
@ -20,11 +20,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||||
import React from "react";
|
import React, {DetailedHTMLProps, forwardRef, useEffect, useRef} from "react";
|
||||||
import "rapidoc";
|
import "rapidoc";
|
||||||
|
|
||||||
interface RapiDocProps
|
interface RapiDocProps
|
||||||
extends React.DetailedHTMLProps<
|
extends DetailedHTMLProps<
|
||||||
React.HTMLAttributes<HTMLDivElement>,
|
React.HTMLAttributes<HTMLDivElement>,
|
||||||
HTMLDivElement
|
HTMLDivElement
|
||||||
>
|
>
|
||||||
@ -113,7 +113,7 @@ declare global
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const RapiDocReact = React.forwardRef<HTMLDivElement, RapiDocProps>(
|
export const RapiDocReact = forwardRef<HTMLDivElement, RapiDocProps>(
|
||||||
(
|
(
|
||||||
{
|
{
|
||||||
beforeRender,
|
beforeRender,
|
||||||
@ -127,9 +127,9 @@ export const RapiDocReact = React.forwardRef<HTMLDivElement, RapiDocProps>(
|
|||||||
ref
|
ref
|
||||||
) =>
|
) =>
|
||||||
{
|
{
|
||||||
const localRef = React.useRef<HTMLDivElement>(null);
|
const localRef = useRef<HTMLDivElement>(null);
|
||||||
|
|
||||||
React.useEffect(() =>
|
useEffect(() =>
|
||||||
{
|
{
|
||||||
const rapiDocRef =
|
const rapiDocRef =
|
||||||
typeof ref === "object" && ref?.current
|
typeof ref === "object" && ref?.current
|
||||||
|
Reference in New Issue
Block a user