fix props with forwarded ref

This commit is contained in:
jake committed 2022-07-13 19:48:49 -04:00
1 parent 39ef018537
commit d35e40a18d
13 files changed
+68 -57

No files matched your search

+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;
};