refactor(front-end): rename interface

main
Josue 3 years ago committed by Tsu-ba-me
parent c15acf501d
commit d44d035bed
  1. 8
      striker-ui/components/Display/FullSize.tsx

@ -66,7 +66,7 @@ const useStyles = makeStyles(() => ({
}, },
})); }));
interface PreviewProps { interface FullSizeProps {
setMode: Dispatch<SetStateAction<boolean>>; setMode: Dispatch<SetStateAction<boolean>>;
uuid: string; uuid: string;
serverName: string | string[] | undefined; serverName: string | string[] | undefined;
@ -77,7 +77,11 @@ interface VncConnectionProps {
forward_port: number; forward_port: number;
} }
const FullSize = ({ setMode, uuid, serverName }: PreviewProps): JSX.Element => { const FullSize = ({
setMode,
uuid,
serverName,
}: FullSizeProps): JSX.Element => {
const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null); const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);
const rfb = useRef<typeof RFB>(); const rfb = useRef<typeof RFB>();
const hostname = useRef<string | undefined>(undefined); const hostname = useRef<string | undefined>(undefined);

Loading…
Cancel
Save