Skip to content
This repository has been archived by the owner on Jan 9, 2022. It is now read-only.

Commit

Permalink
Add footer message
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhaiwat10 committed Apr 19, 2021
1 parent 91d7dde commit 51c79b8
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@ function Home(): React.ReactNode {

return (
<Container style={{ height: '100vh' }}>
<Form style={{ marginTop: 100 }} success={success} error={!!error} onSubmit={onSubmit}>
<Form
style={{ marginTop: 100 }}
success={success}
error={!!error}
onSubmit={onSubmit}
>
<h1>Ropsten Faucet</h1>
<Form.Field error={touched && !isValid}>
<label>Your Ropsten wallet address</label>
Expand All @@ -101,16 +106,20 @@ function Home(): React.ReactNode {
content="0.1 ether will soon be transferred to your wallet."
/>
)}
<Button style={{ marginBottom: 10 }} loading={loading} primary>
<Button style={{ marginBottom: 25 }} loading={loading} primary>
Request Ether
</Button>
</Form>
<p>
Please send donations/unused test ether to{' '}
{process.env.NEXT_PUBLIC_CONTRACT_ADDRESS} to keep this faucet running.
</p>
{contractBalance ? (
<span>
<p>
Contract balance:{' '}
{(parseInt(contractBalance || '') / Math.pow(10, 18), 2).toFixed(2)}{' '}
ether
</span>
</p>
) : null}
</Container>
);
Expand Down

1 comment on commit 51c79b8

@vercel
Copy link

@vercel vercel bot commented on 51c79b8 Apr 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.