From 7dd959e12467a9b9f873766373310e189144550f Mon Sep 17 00:00:00 2001 From: Sheen Capadngan Date: Tue, 28 Jan 2025 16:40:17 +0800 Subject: [PATCH] misc: readded file --- .../SecretSyncReviewFields/GcpSyncReviewFields.tsx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 frontend/src/components/secret-syncs/forms/SecretSyncReviewFields/GcpSyncReviewFields.tsx diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncReviewFields/GcpSyncReviewFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncReviewFields/GcpSyncReviewFields.tsx new file mode 100644 index 000000000..52776c0e9 --- /dev/null +++ b/frontend/src/components/secret-syncs/forms/SecretSyncReviewFields/GcpSyncReviewFields.tsx @@ -0,0 +1,14 @@ +import { useFormContext } from "react-hook-form"; + +import { SecretSyncLabel } from "@app/components/secret-syncs"; +import { TSecretSyncForm } from "@app/components/secret-syncs/forms/schemas"; +import { SecretSync } from "@app/hooks/api/secretSyncs"; + +export const GcpSyncReviewFields = () => { + const { watch } = useFormContext< + TSecretSyncForm & { destination: SecretSync.GCPSecretManager } + >(); + const projectId = watch("destinationConfig.projectId"); + + return {projectId}; +};