Skip to content

Commit

Permalink
add tips and improve ux
Browse files Browse the repository at this point in the history
  • Loading branch information
brucexu-eth committed Mar 26, 2024
1 parent 837511b commit 8a34e0e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/app/src/pages/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export const MainPage: React.FC<{}> = (props) => {
>
password reset email
</a>{" "}
from Twitter.
from Twitter. (Reminder: Twitter name with emoji might fail to pass DKIM verification)
</NumberedStep>
<NumberedStep step={2}>
In your inbox, find the email from Twitter and click the three dot
Expand All @@ -229,7 +229,7 @@ export const MainPage: React.FC<{}> = (props) => {
can "steal" your proof for another account (frontrunning protection!).
</NumberedStep>
<NumberedStep step={5}>
Click <b>"Generate Proof"</b>. Note it is completely client side and
Click <b>"Prove"</b>. Note it is completely client side and
<a href="https://github.com/zkemail/proof-of-twitter/" target="_blank" rel="noreferrer">open source</a>,
and no server ever sees your private information.
</NumberedStep>
Expand Down Expand Up @@ -454,7 +454,7 @@ export const MainPage: React.FC<{}> = (props) => {
Verify
</Button>
<Button
disabled={!verificationPassed || isLoading || isSuccess}
disabled={!verificationPassed || isLoading || isSuccess || !write}
onClick={async () => {
setStatus("sending-on-chain");
write?.();
Expand All @@ -464,6 +464,8 @@ export const MainPage: React.FC<{}> = (props) => {
? "Successfully sent to chain!"
: isLoading
? "Confirm in wallet"
: !write
? "Connect Wallet first, scroll to top!"
: verificationPassed
? "Mint Twitter badge on-chain"
: "Verify first, before minting on-chain!"}
Expand Down

0 comments on commit 8a34e0e

Please sign in to comment.