From 4d9d4133a14b55ec689a477862b03e6e469d6062 Mon Sep 17 00:00:00 2001
From: Plastic Digits <plasticdigits@protonmail.com>
Date: Mon, 4 Sep 2023 16:37:35 +0900
Subject: [PATCH] Add notice if no gang

---
 src/components/elements/GangBarRemovable.jsx | 78 +++++++++++---------
 1 file changed, 45 insertions(+), 33 deletions(-)

diff --git a/src/components/elements/GangBarRemovable.jsx b/src/components/elements/GangBarRemovable.jsx
index 8eccc36..b1946ae 100644
--- a/src/components/elements/GangBarRemovable.jsx
+++ b/src/components/elements/GangBarRemovable.jsx
@@ -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>