From 17632f673e37d28f7829e0d3c153aa78d6e887f5 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Fri, 3 Jun 2022 15:06:43 -0400 Subject: [PATCH 1/5] Refactor account personal key reset to use verify flow steps **Why**: So that we're not permanently maintaining two separate implementations, aim to reuse the new FormSteps-based implementation. Future work should remove the "shared/personal_key" partial and "personal-key-page-controller" script once the IdV app has shipped and stabilized. changelog: Upcoming Features, Identity Verification, Add personal key step screen --- ...dress-verification-method-context.spec.tsx | 4 ++-- .../address-verification-method-context.tsx | 4 ++-- app/javascript/packages/verify-flow/index.ts | 2 ++ .../steps/personal-key/personal-key-step.tsx | 11 +++++---- app/javascript/packs/verify-personal-key.tsx | 24 +++++++++++++++++++ app/views/users/personal_keys/show.html.erb | 4 +++- 6 files changed, 39 insertions(+), 10 deletions(-) create mode 100644 app/javascript/packs/verify-personal-key.tsx diff --git a/app/javascript/packages/verify-flow/context/address-verification-method-context.spec.tsx b/app/javascript/packages/verify-flow/context/address-verification-method-context.spec.tsx index b51b41b20eb..a7de94b2d93 100644 --- a/app/javascript/packages/verify-flow/context/address-verification-method-context.spec.tsx +++ b/app/javascript/packages/verify-flow/context/address-verification-method-context.spec.tsx @@ -12,7 +12,7 @@ describe('AddressVerificationMethodContextProvider', () => { ); return ( <> -
Current value: {addressVerificationMethod}
+
Current value: {String(addressVerificationMethod)}