diff --git a/frontend/features/verification/components/steps/SPVPrivacyStep.tsx b/frontend/features/verification/components/steps/SPVPrivacyStep.tsx index e508f00..b8d2b8a 100644 --- a/frontend/features/verification/components/steps/SPVPrivacyStep.tsx +++ b/frontend/features/verification/components/steps/SPVPrivacyStep.tsx @@ -1,97 +1,56 @@ +// frontend/features/verification/components/steps/SPVPrivacyStep.tsx + import React from 'react'; -import * as Tooltip from '@radix-ui/react-tooltip'; -import { Info } from 'lucide-react'; -import { useWizardStore } from '../../store/wizard.store'; -import clsx from 'clsx'; -const SPVPrivacyStep = () => { - const { formData, setEncryptionEnabled } = useWizardStore(); - - // Default to true as defined in your defaultContent store configuration - const isEncrypted = formData.content?.encryptionEnabled ?? true; +export const SPVPrivacyStep = ({ formData, setFormData }) => { + const handlePrivacyToggle = (mode: 'public' | 'kms') => { + if (mode === 'public') { + // 🎯 Fix: Explicitly clear KMS specific settings when switching to Public + setFormData((prev) => ({ + ...prev, + privacyMode: 'public', + kmsProvider: '', + kmsKeyId: '', + kmsRegion: '', + })); + } else { + setFormData((prev) => ({ + ...prev, + privacyMode: 'kms', + })); + } + }; return ( -
- Select how your verification data is handled on the Stellar network. -
-Standard transparent verification
-Maximum security for sensitive data
-