Skip to content

Commit

Permalink
Add notice if no gang
Browse files Browse the repository at this point in the history
  • Loading branch information
PlasticDigits committed Sep 4, 2023
1 parent d407795 commit 4d9d413
Showing 1 changed file with 45 additions and 33 deletions.
78 changes: 45 additions & 33 deletions src/components/elements/GangBarRemovable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,42 +176,54 @@ export default function GangBarRemovable({
sx={{ marginTop: '1em' }}
>
<Box>
<DialogEquipErc20
btn={
<ButtonPrimary
sx={{
backgroundColor: '#701C1C',
borderRadius: 0,
display: 'inline-block',
fontSize: '1.5em',
width: '11em',
padding: '0.4em 0.25em',
lineHeight: '1em',
margin: 0,
}}
>
<Box
{gangId == undefined ? (
<DialogEquipErc20
btn={
<ButtonPrimary
sx={{
backgroundImage: "url('./logo.png')",
backgroundSize: 'contain',
backgroundRepeat: 'no-repeat',
width: '1em',
height: '1em',
margin: '0',
marginRight: '0.25em',
position: 'relative',
top: '0.15em',
backgroundColor: '#701C1C',
borderRadius: 0,
display: 'inline-block',
fontSize: '1.5em',
width: '11em',
padding: '0.4em 0.25em',
lineHeight: '1em',
margin: 0,
}}
/>
EQUIP BANDITS
</ButtonPrimary>
}
gangId={gangId}
tokenAddress={ADDRESS_BANDIT}
tokenLogo={'./logo.png'}
tokenSymbol={'BANDIT'}
/>
>
<Box
sx={{
backgroundImage: "url('./logo.png')",
backgroundSize: 'contain',
backgroundRepeat: 'no-repeat',
width: '1em',
height: '1em',
margin: '0',
marginRight: '0.25em',
position: 'relative',
top: '0.15em',
display: 'inline-block',
}}
/>
EQUIP BANDITS
</ButtonPrimary>
}
gangId={gangId}
tokenAddress={ADDRESS_BANDIT}
tokenLogo={'./logo.png'}
tokenSymbol={'BANDIT'}
/>
) : (
<Typography sx={{ fontSize: '1.2em' }}>
YOU AINT GOT NO GANG YET!
<br />
(1) Get Bandits BEP20 from cz.cash
<br />
(1) Get Outlaws NFT from outlaws.cz.cash
<br />
(2) Select and confirm your Outlaws
</Typography>
)}
<Typography sx={{ display: 'block', color: 'black' }}>
WALLET: {bnToCompact(banditBal, 18, 5)} BANDITS
</Typography>
Expand Down

0 comments on commit 4d9d413

Please sign in to comment.