From a01e4fa00ad23a836941883137aafbd2c2837527 Mon Sep 17 00:00:00 2001 From: Harsh Shukla <125105825+PrgrmrHarshShukla@users.noreply.github.com> Date: Tue, 25 Jul 2023 02:10:41 +0530 Subject: [PATCH] Updating SignatureRequestData components (#19994) Co-authored-by: georgewrmarshall --- .../signature-request.test.js.snap | 540 +++++++++--------- .../signature-request-data.js | 36 +- .../__snapshots__/index.test.js.snap | 270 ++++----- 3 files changed, 424 insertions(+), 422 deletions(-) diff --git a/ui/components/app/signature-request/__snapshots__/signature-request.test.js.snap b/ui/components/app/signature-request/__snapshots__/signature-request.test.js.snap index 6e14a4b50..c7cdfac65 100644 --- a/ui/components/app/signature-request/__snapshots__/signature-request.test.js.snap +++ b/ui/components/app/signature-request/__snapshots__/signature-request.test.js.snap @@ -234,82 +234,82 @@ exports[`Signature Request Component render should match snapshot when we are us > Mail

-
-
- Contents : - - +
Hello, Bob! - -
-
+ +
  • - From : - -
    +
      -
      - Name : - - +
      Cow - -
      -
      + +
    • - Wallets : - -
      +
        -
        - 0 : - - +
        -
        -
        - -
        -
        +
        + +
      • - 1 : - - +
        -
        -
        - -
        -
      • -
      -
    • -
      -
      +
      + +
    +
  • + + +
  • - To : - -
    +
      -
      - 0 : - -
      +
        -
        - Name : - - +
        Bob - -
        -
        + +
      • - Wallets : - -
        +
          -
          - 0 : - - +
          -
          -
          - -
          -
          +
          + +
        • - 1 : - - +
          -
          -
          - -
          -
          +
          +
        • +
        • - 2 : - - +
          -
          -
          - -
          -
        • -
        -
      • -
        -
      -
      -
    +
  • +
    + + + + + + + +
    Mail

    -
    -
    - Contents : - - +
    Hello, Bob! - -
    -
    + +
  • - From : - -
    +
      -
      - Name : - - +
      Cow - -
      -
      + +
    • - Wallets : - -
      +
        -
        - 0 : - - +
        -
        -
        - -
        -
        +
        + +
      • - 1 : - - +
        -
        -
        - -
        -
      • -
      -
    • -
      -
      +
      + +
    +
  • + + +
  • - To : - -
    +
      -
      - 0 : - -
      +
        -
        - Name : - - +
        Bob - -
        -
        + +
      • - Wallets : - -
        +
          -
          - 0 : - - +
          -
          -
          - -
          -
          +
          + +
        • - 1 : - - +
          -
          -
          - -
          -
          +
          +
        • +
        • - 2 : - - +
          -
          -
          - -
          -
        • -
        -
      • -
        -
      -
      -
    +
  • +
    + + + + + + + +
    + {Object.entries(data).map(([label, { value, type }], i) => ( - {sanitizeString(label.charAt(0).toUpperCase() + label.slice(1))}:{' '} - + {typeof value === 'object' && value !== null ? ( ) : ( - @@ -68,11 +70,11 @@ function SignatureRequestData({ data }) { checksummedRecipientAddress={toChecksumHexAddress(value)} recipientName={getAccountName(identities, value)} /> - + ) : ( sanitizeString(`${value}`) )} - + )} ))} diff --git a/ui/pages/confirm-signature-request/__snapshots__/index.test.js.snap b/ui/pages/confirm-signature-request/__snapshots__/index.test.js.snap index 3522d4d7a..c9e8f1f75 100644 --- a/ui/pages/confirm-signature-request/__snapshots__/index.test.js.snap +++ b/ui/pages/confirm-signature-request/__snapshots__/index.test.js.snap @@ -233,82 +233,82 @@ exports[`Confirm Signature Request Component render should match snapshot 1`] = > Mail

    -
    -
    - Contents : - - +
    Hello, Bob! - -
    -
    + +
  • - From : - -
    +
      -
      - Name : - - +
      Cow - -
      -
      + +
    • - Wallets : - -
      +
        -
        - 0 : - - +
        -
        -
        - -
        -
        +
        + +
      • - 1 : - - +
        -
        -
        - -
        -
      • -
      -
    • -
      -
      +
      + +
    +
  • + + +
  • - To : - -
    +
      -
      - 0 : - -
      +
        -
        - Name : - - +
        Bob - -
        -
        + +
      • - Wallets : - -
        +
          -
          - 0 : - - +
          -
          -
          - -
          -
          +
          + +
        • - 1 : - - +
          -
          -
          - -
          -
          +
          +
        • +
        • - 2 : - - +
          -
          -
          - -
          -
        • -
        -
      • -
        -
      -
      -
    +
  • +
    + + + + + + + +