Skip to content

Commit

Permalink
Update Mint component with new contract link and button label
Browse files Browse the repository at this point in the history
  • Loading branch information
backmeupplz committed Dec 21, 2023
1 parent 28dabcd commit f7b71e2
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions src/components/Mint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import Link from 'components/Link'
import env from 'helpers/env'

export default function () {
const [amount, setAmount] = useState(1000)
const [loading, setLoading] = useState(false)
const [error, setError] = useState('')
const [actionSuccess, setActionSuccess] = useState(false)
Expand Down Expand Up @@ -51,23 +50,19 @@ export default function () {

return (
<>
<input
type="number"
class="input input-bordered w-full"
placeholder="How much $SPAM do you want?"
min={0}
value={amount}
onChange={(e) => setAmount(parseInt(e.currentTarget.value))}
/>
<div class="label">
<span class="label-text-alt">
Cost: ~{(amount / 100000).toFixed(3)} ETH
</span>
</div>
<p>
The contract is{' '}
<Link url="https://basescan.org/address/0x89ca325bd05f851b2b91b3e9fb2d15a59d3d82c6#writeProxyContract">
<span className="break-all">
0x10c2820e29c97D380aaAD53C9CB507a840d460a5
</span>
</Link>{' '}
on the Base chain.
</p>
<div className="flex flex-col items-start gap-4 mt-8">
<Link url="https://dexscreener.com/base/0x10c2820e29c97D380aaAD53C9CB507a840d460a5">
<button class="btn btn-primary btn-wide btn-lg">
πŸ‘ Swap $ETH for $SPAM πŸ‘
πŸ‘ Buy $SPAM πŸ‘
</button>
</Link>
<button
Expand Down

0 comments on commit f7b71e2

Please sign in to comment.