1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 07:01:19 -04:00

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

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