fix props with forwarded ref

This commit is contained in:
2022-07-13 19:48:49 -04:00
parent 39ef018537
commit d35e40a18d
13 changed files with 68 additions and 57 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import { useRouter } from "next/router";
import RFB from "@novnc/novnc/core/rfb";
import Terminal from "../Terminal";
import { styled } from "../../lib/styles/stitches.config";
import type { Ref, ComponentProps } from "react";
import type { Ref, ComponentPropsWithoutRef } from "react";
const Display = styled(
"div",
@@ -33,7 +33,7 @@ const Display = styled(
}
);
export type VNCProps = ComponentProps<typeof Display> & {
export type VNCProps = ComponentPropsWithoutRef<typeof Display> & {
server: string;
};