From bb92bc873889d8090dd3f3cdb160d3d6cd529ee2 Mon Sep 17 00:00:00 2001 From: J M Rossy Date: Mon, 11 Nov 2019 11:39:04 +0100 Subject: [PATCH 1/2] [Wallet] Hide get invite code link for pilot build Fix firebase dbs in google service json files Fix small bug in keyplacer script --- packages/mobile/.env | 3 ++- packages/mobile/.env.alfajores | 1 + packages/mobile/.env.integration | 3 ++- packages/mobile/.env.pilot | 1 + packages/mobile/.env.pilotstaging | 1 + packages/mobile/.env.production | 1 + packages/mobile/.env.staging | 3 ++- packages/mobile/.env.test | 1 + .../android/app/google-services.json.enc | Bin 1113 -> 1113 bytes .../src/alfajores/google-services.json.enc | Bin 1165 -> 1165 bytes .../app/src/debug/google-services.json.enc | Bin 1168 -> 1157 bytes .../src/integration/google-services.json.enc | Bin 1118 -> 1118 bytes .../app/src/pilot/google-services.json.enc | Bin 1157 -> 1157 bytes .../app/src/staging/google-services.json.enc | Bin 1170 -> 1170 bytes packages/mobile/src/config.ts | 2 ++ .../src/invite/EnterInviteCode.test.tsx | 7 +++++++ .../mobile/src/invite/EnterInviteCode.tsx | 14 ++++++++------ scripts/key_placer.sh | 4 +--- 18 files changed, 29 insertions(+), 12 deletions(-) diff --git a/packages/mobile/.env b/packages/mobile/.env index 25257520c96..21c4a9fc34a 100644 --- a/packages/mobile/.env +++ b/packages/mobile/.env @@ -7,4 +7,5 @@ DEFAULT_SYNC_MODE=5 DEV_SETTINGS_ACTIVE_INITIALLY=true FIREBASE_ENABLED=true SECRETS_KEY=debug -SHOW_TESTNET_BANNER=true \ No newline at end of file +SHOW_TESTNET_BANNER=true +SHOW_GET_INVITE_LINK=false \ No newline at end of file diff --git a/packages/mobile/.env.alfajores b/packages/mobile/.env.alfajores index 2f6e79d4622..4a1a754faf8 100644 --- a/packages/mobile/.env.alfajores +++ b/packages/mobile/.env.alfajores @@ -8,3 +8,4 @@ DEV_SETTINGS_ACTIVE_INITIALLY=false FIREBASE_ENABLED=true SECRETS_KEY=production SHOW_TESTNET_BANNER=true +SHOW_GET_INVITE_LINK=true diff --git a/packages/mobile/.env.integration b/packages/mobile/.env.integration index 7b26d23944f..4c5c60d3af4 100644 --- a/packages/mobile/.env.integration +++ b/packages/mobile/.env.integration @@ -7,4 +7,5 @@ DEFAULT_SYNC_MODE=5 DEV_SETTINGS_ACTIVE_INITIALLY=true FIREBASE_ENABLED=true SECRETS_KEY=integration -SHOW_TESTNET_BANNER=true \ No newline at end of file +SHOW_TESTNET_BANNER=true +SHOW_GET_INVITE_LINK=false \ No newline at end of file diff --git a/packages/mobile/.env.pilot b/packages/mobile/.env.pilot index 69c2ffad8e0..3bf5f56bd45 100644 --- a/packages/mobile/.env.pilot +++ b/packages/mobile/.env.pilot @@ -8,3 +8,4 @@ DEV_SETTINGS_ACTIVE_INITIALLY=false FIREBASE_ENABLED=true SECRETS_KEY=production SHOW_TESTNET_BANNER=false +SHOW_GET_INVITE_LINK=false diff --git a/packages/mobile/.env.pilotstaging b/packages/mobile/.env.pilotstaging index dc14a625a6f..448b11dd696 100644 --- a/packages/mobile/.env.pilotstaging +++ b/packages/mobile/.env.pilotstaging @@ -8,3 +8,4 @@ DEV_SETTINGS_ACTIVE_INITIALLY=true FIREBASE_ENABLED=true SECRETS_KEY=pilotstaging SHOW_TESTNET_BANNER=false +SHOW_GET_INVITE_LINK=false diff --git a/packages/mobile/.env.production b/packages/mobile/.env.production index f62cc10d108..250fdba8f6f 100644 --- a/packages/mobile/.env.production +++ b/packages/mobile/.env.production @@ -8,3 +8,4 @@ DEV_SETTINGS_ACTIVE_INITIALLY=false FIREBASE_ENABLED=true SECRETS_KEY=production SHOW_TESTNET_BANNER=false +SHOW_GET_INVITE_LINK=true \ No newline at end of file diff --git a/packages/mobile/.env.staging b/packages/mobile/.env.staging index 6fff7365b86..094acac835c 100644 --- a/packages/mobile/.env.staging +++ b/packages/mobile/.env.staging @@ -7,4 +7,5 @@ DEFAULT_SYNC_MODE=5 DEV_SETTINGS_ACTIVE_INITIALLY=true FIREBASE_ENABLED=true SECRETS_KEY=staging -SHOW_TESTNET_BANNER= \ No newline at end of file +SHOW_TESTNET_BANNER=true +SHOW_GET_INVITE_LINK=true \ No newline at end of file diff --git a/packages/mobile/.env.test b/packages/mobile/.env.test index b22ef2860e1..240cedb61f0 100644 --- a/packages/mobile/.env.test +++ b/packages/mobile/.env.test @@ -8,3 +8,4 @@ DEV_SETTINGS_ACTIVE_INITIALLY=true FIREBASE_ENABLED=false SECRETS_KEY=debug SHOW_TESTNET_BANNER=false +SHOW_GET_INVITE_LINK=true \ No newline at end of file diff --git a/packages/mobile/android/app/google-services.json.enc b/packages/mobile/android/app/google-services.json.enc index 728105d28fe0e3036c3e11208df7a22104dab1c3..37055f55fa5bef6d4563a74c389e1f0a478228ba 100644 GIT binary patch literal 1113 zcmV-f1g856Bmi5&XOf&5UoIc+Mr8&2*Db}V5*SQc3QS#07FD0NkasqoB@(a*02zV- zE*;hP!9|XYZG?iNfj_NtYb}1ump>uHo7k$`^(zi`R)wdPMN*RMFN$px-#qNWZab_& zJ*|y%`#dwjqK0!;1|rnc&{~ISyk0%-PuB&tz1%`kG44f|;+`DWmB!}cT~AK`(C!M~5#);gL71D<cC{@6(rZU=Om+f4GmjL#OD0bUF%XaQ!#MNKy!92vVFcu34o=h~n z1;P*XZ?o^J=Yc)?lv_e|O#p7gI(Fh;vMjW;L7o!du{E ze@*~M$D1+`t#xQOcq%|zocnRNMlzU86R@S?`l|sFIAo!M8%>TCONHxmvjC|%(xGh0 zv3mGC)ib|EZ{EE_9=x7`kLORuFrB@f{r7|2w6?E?+4WqfkmGZ&lZsIA=b0ETTVGTyE5*vPeqJ6h4FkmT%ab-%a@tG z%2Q!16UZW3w?+V0@gUY>qAn3O<+LEenUG!qs_@f#%oHN8P(zdhy;I&|tyv*MyB#u8 zRu^?vqL#^X4N}1|z`U;k8hT0hUw-b)_Fv|MB;m(EA*dT8_Y3EYc)Kg~Z!V2@bw$%R^4MH|CjVWfz$&*YO6 zGh0-}(^mJ>HOV=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(t#iav=%D-4HHK%0f63WZYMF9h;n4tElVhN_{d{)( fvaiYmOFa=EK*)8`w`E}Ixn*ewE}jiRbmk|p8O|N* diff --git a/packages/mobile/android/app/src/alfajores/google-services.json.enc b/packages/mobile/android/app/src/alfajores/google-services.json.enc index 267ee7b93747461bd4e73701b257dec510069fbf..dcb19ef5ab9217293a03f8bf876184bf3698d748 100644 GIT binary patch literal 1165 zcmV;81akWdBmi5&XOihB2~%!S+Z`&!zH^v}^d~Q1!Hm^cPE-H;>pjBZbQ0tU02zV- zE@nXgVJnRYJ67uL6zmyTB?%XI;1a)=B$Vq(f9H~{3B*I0mw>lYaDEjE7q9R|93Ft- z6)v2ZD-<|pGjf4?rIW5&)Ly~uv)8LRXXbS94v^HA94 zxw6tVuF;&{VxYLk353hH-k1$6TgEXAk^!Z9Q3ThJ((3D3GIX8Ud^D0$o$hzoxwLUr za>Zn2+vMKf(eBZ7o94XtV94u5koTLMUbhc*s|v-BUr;W#&`G3C>i*0ikItxo{jyoS zTE?Qgfk;7QaY_q0t}M4|4^@J*yzQ^xe$+N8pV3&US#$@%5!8o4MW7Xx5^3Um>!w&D zjt04uD4y2HfDDAPh|~GNsPsmd?wJI8o4-TsWKS0Rda%$vykF zNc5Q#Sb)^Zd+H9fPMx5;J2)K`dr|yMfwlQV>T{7(e;G*{kZIuVa%a|Czj!WvmUZ>f zRm+^z#9D0eusN)WVmn^UihDvF-*Ec|i(8%(?%9wL^LE&^IZ7~m0%&+4w^S61_=4)Z zSe66r#7x7nyOeC@BS%U!ONf)}DOt_?8IPON5cm;P`^+-f{RE%U;u-er1T^+jCgF^H z=*Fb@L_kUm+cbTQC`12XzZ@I~k=P9q{w|V_Zsr4i!C58Lm)JFofL-E75Z?n4MLTiz z27dsErhjMettw;~maNC#)u{(voTWR_AIG7@dEwUh*v%aE|l#)p7uM*@402zV- zF5sDXuj-NG4e=Nl`3+_c{Lr>C@+UaZW*TlvJhvs+R|EwRt!8WtJ0i+~9jSdHha&ed zms@?8g|7nsI93YbYjw0qt@#WXKYqh^RjVVquzC@Vl~dUYcU@Y=uj-z>UY52qy&0ND zlcChKyaMMhG^0;K){IAp0l`mfpHyJEXe}uUur9Uu*$zr%b@Kj|9$_NEH~A@xMRB;Z z#!{a^P-4yO&UR>{0beSgr_;Ek;ei+b&$L{)=vY&SLhMNq!6}C12xxhP=|E@ z=)|7~(|lG_o$RA;4MOPAbK8q&=~^DBT6%Jf_h)_|R{9p&J09+Cm1^K4BuSX zBn3c}x@&o}a!W*|h>x%kU>H)i#e3x1SyYCE2vKZdJVU6*^lLhU0xJUkucHY+S{i(* zPJktTl$mx@+sT%}tC#@1z7TlE;9akK(E)C<`op$b!j!S{aT0KhQESVNs(swx;iiBj zc_tQXx*1Cz4t1s{BR;6y2guC^s~x~ck6mQ$gTKkSsYuNWa7J=$wbMMRRDa$2*H{&` zG_>`25+fY3l@EP+JlFT1S4Rcks}T}Za>Q|VlaLn1Hc~gs)XI4=1k3lk<(9 zh0aXO#T~@)SIid{=S)F#=St<~W2UPgO@4%;KxnWILdf+0VMlZBesuLB?Oyynqq|Yu z+3}ygX9F{|2=dx>gJoCUy?K03M%0pJ=Sd&(#yNE|=?XbWWT6W)|$(^u530!u7>g~>UJ;6ozD6`U9ND+>5a zbBWWRp@L76!^A?(BkKU(nlz0_a&rk_8C=vp?=)}fH3J8UFCOrI5e&uzxw`Bn1b7{z zBF223?A9|21%sDO{AA}c=h`6@d);jDIWP$ZX%j$7 zt3t*LpPuYIvj4~Q3Titk`aFe;VUu7^bjX*+vBJ@0o6aa;a6^J1h8YtZDPwoZk%N!Z zFI{j5x2zp+h%%_?Z_-J?(gxSRX2DX4dy6ELf(Dwd>^$^kf3yh1eyvAjl%zR&8qQ*5 f!|W!USdzwAWgP=votdeX+c>h31FAlYzsmw_)uK2B diff --git a/packages/mobile/android/app/src/debug/google-services.json.enc b/packages/mobile/android/app/src/debug/google-services.json.enc index acbd870b11e8bafef8e1d260208d8c73222afb98..f1ed4107a7dd24a06adb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rg7boZ@e7;b)+i%r{o0P#?^APK iteM%gDQ3du0c92@H`&z+F^lYyQ`WeAWt?czG2d8I=|m_1 diff --git a/packages/mobile/android/app/src/integration/google-services.json.enc b/packages/mobile/android/app/src/integration/google-services.json.enc index 70587f539e7c73941d9c52343debacfed7a18c5f..ca80b252e428f58ce454e540b2d17ee306961cac 100644 GIT binary patch literal 1118 zcmV-k1fly1Bmi5&XOcujMoTFXJq%j0B1vExdChwFEetD36Lzb$?GshR0ur?d02zV- zE>0{jC34wVH5t_))^n4X1%{}+ew*=P(|-5oN{8=_1(0svP&082lf_3ndS5~H?993j zV;bkcHY}<-vqQccSqCA%n^mkWcC}KI1V>7XkuQeB20t=msc(IUqFsnpnIVz&2M1=L zf>-w$UKgZiRGlkLQ72Zn-bdCTI7W07v;%!Tx*Sk{Zx0Ymn~_C2*k7_{wO>Sk$tNeTzZ?6#@4 z^n#x?A3OiOdh|M5*$fV9$y^3uQ1nobi*IKp%`;Fi=j+Y*eC0P+L+-Gigtlm`5eW!N zHZa0x$)HT~g=%raadckvq%v<>(Cskj-YBZ!fMxpE^A03%&$17zt87!szJ=ziq;sC? zoKVN1GkZd3CDDJWppoY6h?t_kM0m!#y|M(_;=CkW-7vL(z-zh&XqVyQ8{-?Y7~!`+ zie)VjP!jF9ep4v7{-uo|hhSAbHcn=&iG+)u|<#rVN(7&wpL+Y2_~BRoBer!AtABjWMDME=g0kFg$7j5YyXeweVhCuNsVNV}|`1^Z)bDSL7h0++kjO~gLm!QPhzw19z}r?3tOLU$;IlpH66Z1&J0Ard zlY`v1iG`djsvBY?n9c6_GGbi%gW{jQifAB6QBd0LOQ1daJ^jD3U%$7a zNvm1{o7QL&shB$+Z|ry#NqUdJBZ6a96Ez}AJ}T=MHB_#IO+Hm zZkJ9Cje#|<_%JJ*coFKA16^K$`i~-kz8$c8YE&PZhwi^?KJ;CaNj=E!6z{N!^@5M`;|V9Ndit=4)hLJkbWV46>^RkQ-j>j%m1u<&t_2W*m&@^iEHOXQ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kXUHIZNwgpZ>>Yz5nF$J@XsOilzsAt2MGP=mmYr#-^2n4Q-v9sr diff --git a/packages/mobile/android/app/src/pilot/google-services.json.enc b/packages/mobile/android/app/src/pilot/google-services.json.enc index f3cf48bac67b1dae274ab50e6cfb452ad86d5481..837da02302027dcd2c53287d347ba10a9171a978 100644 GIT binary patch literal 1157 zcmV;01bX`lBmi5&XOa+DMDBPyVU$h|&Bqbhz*zS>iG5oO&$;L;gO?H0uoBz|02zV- zF1ZN#(QSK7^-8@k5DyXB1J66iIaZYL&_##~I#lTIPotW54iiC1Sy3fp)xq>5(F+T} z9u2V846-YFJ_&f6sEs#3vG+l7Gt=I2j)`!gncxuNWLQ?)mE?9LgcTmEI0Sii)9mX=gmL6ST+Uv}o~-mUb^@;IXK$U3^S8 zzGR}@ROH@4Fl_xND}VXJG-Gz0g7ba$ zQeg7>3`LM4$NYe+3G@F>>-VwAA4TCtMYj?XWuCP0CW@T(&DRimopB~(OHPpoP}7?6 z@kJZ+hA^1^-3<-uK%9EHYpdt8gc`qxx6eTyaYO6~5*v!J z?h{?28al42#q_{b+h~1sy(-mI6T+3&4XS6QON`eA%2ZklwaonFc?f_mCejwQ;;<3Zk<;l z8FP1^fhtp0Ofh=4h{hHJ7hWfIEoxfTqo&6J;8V74z)-OFkSjgV94Io2Iv;1|N*Rix zp5D4Dae-ZDOWW1;*o2`Kb8p+w81k4 literal 1157 zcmV;01bX`lBmi5&XOdOC-dz5e(Kz8IDZQZVmgDhx5Lnw9(}fxOv_RU`uoBz|02zV- zE^SOe+a0_~FloC>RyvKauN2B$p(PPxi~8T;U1ad;6%B<%e7Vf$N|xV^Q4SyMg1-4> z6M_2um$aoqEp&SWv@vuMFV)S6vTiVbB%wX(_qdiwqX(lPycrFQI{#Z(_ODcN`%mKU zjZaU#twpjAn_{;UJ1L&zKU0tg6!pv3arrSaJ`3+dhy3ET$+vw1GUhTGm-p5_AL7W# zcGqt)rJ3R$mVCdEfEgI_!^^rzkH2mq@Dmwma1QUE|HTvAAkHK&Y zUX+$`+M`n5jf-+NYO!6H9SJ2t)%{xBqUJ>zzmH-}>`=Nx4pW^PXDIGf5nV19DJE*7 z2ST4Lo)k#5?5!@ps2yOMgp)RJoYw=@Q%NoK+8}pfccsKgChYv&eoB>cx*jdt6Z%>T zyd7N3te3c5_p*TjTYeq*slecMRUuG%bjoW9znQNuDdMf`_DarNg$9q3@V}7S6-u`S z;Cv+3@K`|7CvX$njWNgwOXmXN7roq)9{LH&x|$uMcZ>h%6%4WzBll=f1bB;_`2NO` z?)(d9tH%eme3Ij68%Cd-c-bb2-8i0+72gpa5jXCZQS)IQ2Y>Vc=Mm7W*)clm;D??Z zj_aJmAexDI!*`RTS>4d6l0@8oaFA9oaHn^A#d^6sw)8aR2`%nbok@aBEG1oK4zM8u9(4hEpDmJ6QZN@}q#2?8uSYdpYVAZi zV%y3P7424ATThf{Sa7^`sXo3&*C9Hf#C#+Iex}^eNMJtd{6D5k>%7>+z8N8N9mz!g zXWj2b^%Ya#LrMv@zcW5uGV6iBq)(5(aap)ry2nL@wJ6{4YH9AYZEC ztEjz7&;FCMadla92+5(wQ9g4K?KD2FK*ACBEmL7qww5lw&m2k-u)CD zM(_ur))-Wx8ag@6C+>1L*yOA>)@pZ`dQ*(O_8D$d3Erm#UBARb@#i24 XB_s8)IN#j${>Tp0*CZ<$mPl@t4QxFK diff --git a/packages/mobile/android/app/src/staging/google-services.json.enc b/packages/mobile/android/app/src/staging/google-services.json.enc index f4b24e6d9af253d6e7615211cdb8df4bee3f38da..fae9f7e0f30a7f81e940ac2e91c782c15eb6f277 100644 GIT binary patch literal 1170 zcmV;D1a12YBmi5&XOdd3yV^eHL0nj?yeavag9i!{f2ahk+au7{5(!A5q!Q@}02zV- zE+6yd`apB$8_PJzQZk6yw%d*t;iIa(I*-#9FPXEcUJJ8uC4|`64wH54{WxYAk>|bc zU2HpLp^QTLB9CSKdm5Z%<`LPirv3a2N*?=O;^zve0?*ACyy_e!_cK1e)dSAp&qj;m z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2;pVbLJ)ZiMZUJ7!*)>##*R)9aHNWmDsSm4?f(GzVKJTK;lJ!B!)SB}IF$ zj4RA-$v1Z7U_-;}B>SL%WM#uea%G~Jf$75w?Q9<~6$12Sx*w%Jhk-ND#lyU2CUzv%+m&cgmOutC071wNWG>@2X zb-iIEU9(Z2z8Vp!lylBK+Bx-ySs?1L%KIpfw@{4#+GR|ZGJiQ3`>O|bT6z<$%06lf zfX%Zq{#;`UOL=>imd7b(ba}jCSza~!2HF$yl3m1r^WNLC+v##;z)c5dj@YqE{%LDc zhffc!il~fWLbZ1#(8u%q+g>^8eGURMCR~dw&bMJepVWc@6QC1#1NO~Qt`Z2cg#^3{ z$q097-#xzuA9h}Jc4{h;4)C{#mZhw;`*8orJmSTYBGtCVCct`D`kJf@uQE|vsC4a< z4SL!Vl=CbLF&%tRp18Li#(9OSP3MWT6>63Ficz*Vad$aDu%gh6|6!Up+4$=AtS%G~ z+mb{)KT)2EeZpdB2bZNrw8Cdhng_@(ZDY27$JrS*ikW#tO{yL?WZ*`Gc;;yoM>7tO zPlNRm{umkFQNlj2%$2G2YB`=_O6U2^F=-9m@e1TlZUHUB^+M%)LRfY9b$(ervBv*G ko1qs7`_kdK{a$*L-I%b`Tl)Yt_iL3C*j*&~lpHVWYP3;CyZ`_I diff --git a/packages/mobile/src/config.ts b/packages/mobile/src/config.ts index 2aa94a95900..a8684eb8e38 100644 --- a/packages/mobile/src/config.ts +++ b/packages/mobile/src/config.ts @@ -65,6 +65,8 @@ export const ESCROW_PAYMENT_EXPIRY_SECONDS = 172800 // 2 days export const SHOW_TESTNET_BANNER = stringToBoolean(Config.SHOW_TESTNET_BANNER || 'false') +export const SHOW_GET_INVITE_LINK = stringToBoolean(Config.SHOW_GET_INVITE_LINK || 'false') + // The minimum allowed value for a transaction such as a transfer export const DOLLAR_TRANSACTION_MIN_AMOUNT = 0.01 export const GOLD_TRANSACTION_MIN_AMOUNT = 0.001 diff --git a/packages/mobile/src/invite/EnterInviteCode.test.tsx b/packages/mobile/src/invite/EnterInviteCode.test.tsx index ffe0ef41774..3dd617b1e88 100644 --- a/packages/mobile/src/invite/EnterInviteCode.test.tsx +++ b/packages/mobile/src/invite/EnterInviteCode.test.tsx @@ -16,6 +16,13 @@ import EnterInviteCode, { } from 'src/invite/EnterInviteCode' import { createMockStore, getMockI18nProps } from 'test/utils' +jest.mock('src/config', () => { + return { + ...jest.requireActual('src/config'), + SHOW_GET_INVITE_LINK: true, + } +}) + const VALID_INVITE = 'Something something pFCr5NAAf/vUcWypJiQFnF6DHI+6vCGxMhhShki07ow= another thing else' const VALID_INVITE_KEY = '0xa450abe4d0007ffbd4716ca92624059c5e831c8fbabc21b13218528648b4ee8c' diff --git a/packages/mobile/src/invite/EnterInviteCode.tsx b/packages/mobile/src/invite/EnterInviteCode.tsx index c82166689d3..45762e22498 100644 --- a/packages/mobile/src/invite/EnterInviteCode.tsx +++ b/packages/mobile/src/invite/EnterInviteCode.tsx @@ -25,7 +25,7 @@ import { hideAlert, showError } from 'src/alert/actions' import { componentWithAnalytics } from 'src/analytics/wrapper' import { ErrorMessages } from 'src/app/ErrorMessages' import DevSkipButton from 'src/components/DevSkipButton' -import { CELO_FAUCET_LINK, DEFAULT_TESTNET } from 'src/config' +import { CELO_FAUCET_LINK, DEFAULT_TESTNET, SHOW_GET_INVITE_LINK } from 'src/config' import { Namespaces } from 'src/i18n' import { redeemInvite } from 'src/invite/actions' import { extractValidInviteCode, getValidInviteCodeFromReferrerData } from 'src/invite/utils' @@ -212,12 +212,14 @@ export class EnterInviteCode extends React.Component { - - {t('inviteCodeText.askForInvite.0', { testnet: _.startCase(DEFAULT_TESTNET) })} - - {t('inviteCodeText.askForInvite.1')} + {SHOW_GET_INVITE_LINK && ( + + {t('inviteCodeText.askForInvite.0', { testnet: _.startCase(DEFAULT_TESTNET) })} + + {t('inviteCodeText.askForInvite.1')} + - + )}