Fix linter

This commit is contained in:
Fang-Pen Lin
2025-10-24 12:29:35 -07:00
parent 1f17cbd84f
commit f16ba29bbd
@@ -36,10 +36,7 @@ const CreateForm = ({
const createPamAccount = useCreatePamAccount(); const createPamAccount = useCreatePamAccount();
const onSubmit = async ( const onSubmit = async (
formData: DiscriminativePick< formData: DiscriminativePick<TPamAccount, "name" | "description" | "credentials">
TPamAccount,
"name" | "description" | "credentials" | "rotationEnabled" | "rotationIntervalSeconds"
>
) => { ) => {
try { try {
const account = await createPamAccount.mutateAsync({ const account = await createPamAccount.mutateAsync({
@@ -86,10 +83,7 @@ const UpdateForm = ({ account, onComplete }: UpdateFormProps) => {
const updatePamAccount = useUpdatePamAccount(); const updatePamAccount = useUpdatePamAccount();
const onSubmit = async ( const onSubmit = async (
formData: DiscriminativePick< formData: DiscriminativePick<TPamAccount, "name" | "description" | "credentials">
TPamAccount,
"name" | "description" | "credentials" | "rotationEnabled" | "rotationIntervalSeconds"
>
) => { ) => {
try { try {
const updatedAccount = await updatePamAccount.mutateAsync({ const updatedAccount = await updatePamAccount.mutateAsync({