mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 21:28:27 +00:00
More linter errors
This commit is contained in:
@@ -62,7 +62,7 @@ export const PamAccessAccountModal = ({ isOpen, onOpenChange, account }: Props)
|
|||||||
() =>
|
() =>
|
||||||
account &&
|
account &&
|
||||||
(account.resource.resourceType === PamResourceType.Postgres ||
|
(account.resource.resourceType === PamResourceType.Postgres ||
|
||||||
account.resource.resourceType == PamResourceType.MySQL)
|
account.resource.resourceType === PamResourceType.MySQL)
|
||||||
? `infisical pam db access-account ${account.id} --duration ${cliDuration}`
|
? `infisical pam db access-account ${account.id} --duration ${cliDuration}`
|
||||||
: "",
|
: "",
|
||||||
[account, cliDuration]
|
[account, cliDuration]
|
||||||
|
|||||||
@@ -75,11 +75,8 @@ const CreateForm = ({
|
|||||||
);
|
);
|
||||||
case PamResourceType.MySQL:
|
case PamResourceType.MySQL:
|
||||||
return (
|
return (
|
||||||
<MySQLAccountForm
|
<MySQLAccountForm onSubmit={onSubmit} resourceId={resourceId} resourceType={resourceType} />
|
||||||
onSubmit={onSubmit}
|
);
|
||||||
resourceId={resourceId}
|
|
||||||
resourceType={resourceType}
|
|
||||||
/>);
|
|
||||||
default:
|
default:
|
||||||
throw new Error(`Unhandled resource: ${resourceType}`);
|
throw new Error(`Unhandled resource: ${resourceType}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user