fix: Finish rename refactors suggested in PR
Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
This commit is contained in:
@@ -23,11 +23,11 @@ import { FitAddon } from 'xterm-addon-fit';
|
||||
import { PodExecTerminalAttachAddon } from './PodExecTerminalAttachAddon';
|
||||
|
||||
/**
|
||||
* Props drilled down to the K8sTerminal component
|
||||
* Props drilled down to the PodExecTerminal component
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export interface K8sTerminalProps {
|
||||
export interface PodExecTerminalProps {
|
||||
clusterName: string;
|
||||
containerName: string;
|
||||
podName: string;
|
||||
@@ -42,7 +42,7 @@ const hasSocketProtocol = (url: string | URL) =>
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export const PodExecTerminal = (props: K8sTerminalProps) => {
|
||||
export const PodExecTerminal = (props: PodExecTerminalProps) => {
|
||||
const { containerName, podNamespace, podName } = props;
|
||||
|
||||
const [baseUrl, setBaseUrl] = useState(window.location.host);
|
||||
|
||||
@@ -28,7 +28,7 @@ import OpenInBrowserIcon from '@material-ui/icons/OpenInBrowser';
|
||||
import React, { useState } from 'react';
|
||||
|
||||
import { useIsPodExecTerminalSupported } from '../../hooks';
|
||||
import { PodExecTerminal, K8sTerminalProps } from './PodExecTerminal';
|
||||
import { PodExecTerminal, PodExecTerminalProps } from './PodExecTerminal';
|
||||
|
||||
const useStyles = makeStyles((theme: Theme) =>
|
||||
createStyles({
|
||||
@@ -48,7 +48,7 @@ const useStyles = makeStyles((theme: Theme) =>
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export const PodExecTerminalDialog = (props: K8sTerminalProps) => {
|
||||
export const PodExecTerminalDialog = (props: PodExecTerminalProps) => {
|
||||
const classes = useStyles();
|
||||
const { clusterName, containerName, podName } = props;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user