mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Co-authored-by: openhands <openhands@all-hands.dev> Co-authored-by: rohitvinodmalhotra@gmail.com <rohitvinodmalhotra@gmail.com>
16 lines
396 B
TypeScript
16 lines
396 B
TypeScript
import { useMutation } from "@tanstack/react-query";
|
|
import { SecretsService } from "#/api/secrets-service";
|
|
|
|
export const useUpdateSecret = () =>
|
|
useMutation({
|
|
mutationFn: ({
|
|
secretToEdit,
|
|
name,
|
|
description,
|
|
}: {
|
|
secretToEdit: string;
|
|
name: string;
|
|
description?: string;
|
|
}) => SecretsService.updateSecret(secretToEdit, name, description),
|
|
});
|