disable click on sold out bonds
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
40b58f320a
commit
ff43a26e0d
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "ghost-dao-interface",
|
||||
"private": true,
|
||||
"version": "0.7.1",
|
||||
"version": "0.7.2",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@ -132,9 +132,10 @@ const BondCard = ({ bond, secondsTo, chainName }) => {
|
||||
<Link
|
||||
component={NavLink}
|
||||
to={`/${chainName}/bonds/${bond.id}`}
|
||||
sx={{ pointerEvents: bond.isSoldOut ? 'none' : 'auto' }}
|
||||
>
|
||||
<TertiaryButton fullWidth>
|
||||
Bond
|
||||
<TertiaryButton fullWidth disabled={bond.isSoldOut}>
|
||||
{bond.isSoldOut ? "Sold Out" : `Bond`}
|
||||
</TertiaryButton>
|
||||
</Link>
|
||||
</Box>
|
||||
@ -223,6 +224,7 @@ const BondRow = ({ bond, secondsTo, chainName }) => {
|
||||
<Link
|
||||
component={NavLink}
|
||||
to={`/${chainName}/bonds/${bond.id}`}
|
||||
sx={{ pointerEvents: bond.isSoldOut ? 'none' : 'auto' }}
|
||||
>
|
||||
<TertiaryButton fullWidth disabled={bond.isSoldOut}>
|
||||
{bond.isSoldOut ? "Sold Out" : `Bond`}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user