greptile review fixes

This commit is contained in:
x032205
2025-11-16 16:11:47 -05:00
parent a2c6b2c819
commit 19ccf0b56c
5 changed files with 5 additions and 32 deletions
@@ -301,7 +301,7 @@ export const GatewayCliDeploymentMethod = () => {
<> <>
<FormLabel <FormLabel
label="Identity Token" label="Identity Token"
tooltipText="The identity token that your relay will use for authentication." tooltipText="The identity token that your gateway will use for authentication."
className="mt-4" className="mt-4"
/> />
<Input <Input
@@ -323,7 +323,7 @@ export const GatewayCliSystemdDeploymentMethod = () => {
<> <>
<FormLabel <FormLabel
label="Identity Token" label="Identity Token"
tooltipText="The identity token that your relay will use for authentication." tooltipText="The identity token that your gateway will use for authentication."
className="mt-4" className="mt-4"
/> />
<Input <Input
@@ -156,15 +156,6 @@ export const RelayCliDeploymentMethod = () => {
} }
}; };
const handleIdentityChange = (
selectedIdentity: SingleValue<{
id: string;
name: string;
}>
) => {
setIdentity(selectedIdentity);
};
const command = useMemo(() => { const command = useMemo(() => {
return `infisical relay start --name=${name} --domain=${siteURL} --host=${host} --token=${identityToken}`; return `infisical relay start --name=${name} --domain=${siteURL} --host=${host} --token=${identityToken}`;
}, [name, siteURL, host, identityToken]); }, [name, siteURL, host, identityToken]);
@@ -245,7 +236,7 @@ export const RelayCliDeploymentMethod = () => {
<FilterableSelect <FilterableSelect
value={identity} value={identity}
onChange={(e) => onChange={(e) =>
handleIdentityChange( setIdentity(
e as SingleValue<{ e as SingleValue<{
id: string; id: string;
name: string; name: string;
@@ -156,15 +156,6 @@ export const RelayCliSystemdDeploymentMethod = () => {
} }
}; };
const handleIdentityChange = (
selectedIdentity: SingleValue<{
id: string;
name: string;
}>
) => {
setIdentity(selectedIdentity);
};
const installCommand = useMemo(() => { const installCommand = useMemo(() => {
return `sudo infisical relay systemd install --name=${name} --domain=${siteURL} --host=${host} --token=${identityToken}`; return `sudo infisical relay systemd install --name=${name} --domain=${siteURL} --host=${host} --token=${identityToken}`;
}, [name, siteURL, host, identityToken]); }, [name, siteURL, host, identityToken]);
@@ -286,7 +277,7 @@ export const RelayCliSystemdDeploymentMethod = () => {
<FilterableSelect <FilterableSelect
value={identity} value={identity}
onChange={(e) => onChange={(e) =>
handleIdentityChange( setIdentity(
e as SingleValue<{ e as SingleValue<{
id: string; id: string;
name: string; name: string;
@@ -190,15 +190,6 @@ export const RelayTerraformDeploymentMethod = () => {
} }
}; };
const handleIdentityChange = (
selectedIdentity: SingleValue<{
id: string;
name: string;
}>
) => {
setIdentity(selectedIdentity);
};
const terraformCommand = useMemo(() => { const terraformCommand = useMemo(() => {
return `terraform { return `terraform {
required_providers { required_providers {
@@ -365,7 +356,7 @@ resource "aws_eip_association" "eip_assoc" {
<FilterableSelect <FilterableSelect
value={identity} value={identity}
onChange={(e) => onChange={(e) =>
handleIdentityChange( setIdentity(
e as SingleValue<{ e as SingleValue<{
id: string; id: string;
name: string; name: string;