From c97ea252cfe72c32028256df1c0f7d46753ac670 Mon Sep 17 00:00:00 2001 From: Uma Roy Date: Sat, 20 Nov 2021 11:02:48 -0500 Subject: [PATCH] Some formatting --- components/Header.tsx | 2 +- components/Messages.tsx | 16 ++++++++-------- pages/hash.tsx | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/components/Header.tsx b/components/Header.tsx index af9f4e2..912f84c 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -16,7 +16,7 @@ export function Header() {

- zk chat + zk message board

diff --git a/components/Messages.tsx b/components/Messages.tsx index 557e1ff..a6f0d2d 100644 --- a/components/Messages.tsx +++ b/components/Messages.tsx @@ -160,10 +160,10 @@ async function onMessageVerify( ) if (!msgVerified) { - text += "The message cannot be verified." + text += "🚨 The message cannot be verified." isValid = false } else { - text += "The message is verified." + text += "✅ The message is verified." } if (message.reveal) { @@ -174,10 +174,10 @@ async function onMessageVerify( message.reveal.publicSignals ) if (!revealVerified) { - text += `\nThe reveal ${message.reveal} associated with this message is false.` + text += `\n🚨 The reveal associated with this message is false.` isValid = false } else { - text += "\nThe reveal associated with this message is verified." + text += "\n✅ The reveal associated with this message is verified." } } if (message.deny.length > 0) { @@ -190,15 +190,15 @@ async function onMessageVerify( deny.publicSignals ) if (!denyVerified) { - text += `\nThe deny ${deny.userPublicKey} associated with this message is false!` + text += `\n🚨 The deny ${deny.userPublicKey} associated with this message is false!` isValid = false } else { - text += `\nThe deny ${deny} associated with this message is verified.` + text += `\n✅ The deny ${deny.userPublicKey} associated with this message is verified.` } } } - alert(text) + // alert(text) return text } @@ -226,7 +226,7 @@ function VerifyButton({ vKeys, message }) { return (
{text ? ( -
{text}
+
{text}
) : (