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",
|
"name": "ghost-dao-interface",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.7.1",
|
"version": "0.7.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@ -132,9 +132,10 @@ const BondCard = ({ bond, secondsTo, chainName }) => {
|
|||||||
<Link
|
<Link
|
||||||
component={NavLink}
|
component={NavLink}
|
||||||
to={`/${chainName}/bonds/${bond.id}`}
|
to={`/${chainName}/bonds/${bond.id}`}
|
||||||
|
sx={{ pointerEvents: bond.isSoldOut ? 'none' : 'auto' }}
|
||||||
>
|
>
|
||||||
<TertiaryButton fullWidth>
|
<TertiaryButton fullWidth disabled={bond.isSoldOut}>
|
||||||
Bond
|
{bond.isSoldOut ? "Sold Out" : `Bond`}
|
||||||
</TertiaryButton>
|
</TertiaryButton>
|
||||||
</Link>
|
</Link>
|
||||||
</Box>
|
</Box>
|
||||||
@ -223,6 +224,7 @@ const BondRow = ({ bond, secondsTo, chainName }) => {
|
|||||||
<Link
|
<Link
|
||||||
component={NavLink}
|
component={NavLink}
|
||||||
to={`/${chainName}/bonds/${bond.id}`}
|
to={`/${chainName}/bonds/${bond.id}`}
|
||||||
|
sx={{ pointerEvents: bond.isSoldOut ? 'none' : 'auto' }}
|
||||||
>
|
>
|
||||||
<TertiaryButton fullWidth disabled={bond.isSoldOut}>
|
<TertiaryButton fullWidth disabled={bond.isSoldOut}>
|
||||||
{bond.isSoldOut ? "Sold Out" : `Bond`}
|
{bond.isSoldOut ? "Sold Out" : `Bond`}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user