From 56ad7eea40940e8b787cdc76f6e06026ebc72246 Mon Sep 17 00:00:00 2001 From: Alain Nicolas Date: Tue, 19 Dec 2023 17:00:00 +0100 Subject: [PATCH] fix: Change POH page wording (#481) --- website/src/pages/Poh.css | 5 ----- website/src/pages/Poh.tsx | 35 +++++++++++++++++++++++++++++------ 2 files changed, 29 insertions(+), 11 deletions(-) diff --git a/website/src/pages/Poh.css b/website/src/pages/Poh.css index 72e2b4d6..5bb10c74 100644 --- a/website/src/pages/Poh.css +++ b/website/src/pages/Poh.css @@ -3,11 +3,6 @@ display: block; } -/* columns */ -.responsive-two-column-grid > * { - padding: 1rem; -} - /* tablet breakpoint */ @media (min-width: 768px) { .responsive-two-column-grid { diff --git a/website/src/pages/Poh.tsx b/website/src/pages/Poh.tsx index 306f6282..3938355f 100644 --- a/website/src/pages/Poh.tsx +++ b/website/src/pages/Poh.tsx @@ -52,14 +52,22 @@ function Poh() { isConnected && address ? getMyPoh() : initPage(); }, [isConnected, address]); + const displayName = (name: string) => { + return name === "Testnet Voyage NFT" ? "Testnet Voyage NFT original recipient" : name; + }; + const displayPohGroup = (pohGroup?: IssuerAttestation[]) => { return ( <> {pohGroup?.map((poh) => (
- - {poh.issuerName} - + {poh.issuerWebsiteUrl !== "" ? ( + + {displayName(poh.issuerName)} + + ) : ( + <>{displayName(poh.issuerName)} + )} {poh.validated ? ` ✅` : ` ❌`}
))} @@ -77,15 +85,30 @@ function Poh() { {didCallPoh && ( <> -
Global POH status {isPoh ? ` ✅` : ` ❌`}
+
+

+ Proof of Humanity for the Linea DeFi Voyage uses Verax as the underlying infrastructure. +

+

In order to be able to verify your humanity:

+

a. Receive ONE attestation from a partner of Group 1

+

b. Receive TWO attestations from partners of Group 2

+
+ +
+

Global POH status {isPoh ? ` ✅` : ` ❌`}

+
-
Group 1
+
+

Group 1

+
{displayPohGroup(pohGroupA)}
-
Group 2
+
+

Group 2

+
{displayPohGroup(pohGroupB)}