@@ -3,13 +3,13 @@ import {
33 CoinLine ,
44 DocumentationIcon ,
55 FaucetIcon ,
6- GiftLineIcon ,
6+ // GiftLineIcon,
77 GlobalLine ,
88 HomeFillIcon ,
99 PolkadotJs ,
1010 ShuffleLine ,
1111 TokenSwapFill ,
12- WaterDropletIcon ,
12+ // WaterDropletIcon,
1313} from '@tangle-network/icons' ;
1414import {
1515 MobileSidebarProps ,
@@ -23,8 +23,8 @@ import {
2323 TANGLE_FAUCET_URL ,
2424 TANGLE_MKT_URL ,
2525} from '@tangle-network/ui-components/constants' ;
26- import { PointsBanner } from '../../features/points/components/PointsBanner' ;
27- import { PagePath } from '../../types' ;
26+ // import { PointsBanner } from '../../features/points/components/PointsBanner';
27+ import { NetworkFeature , PagePath } from '../../types' ;
2828
2929// TODO: This entire system of handling sidebar props can be improved in a more React-compliant manner. For now, leaving as is since it is not necessary.
3030// Only show the services dropdown if on development mode.
@@ -43,13 +43,13 @@ const SIDEBAR_STATIC_ITEMS: SideBarItemProps[] = [
4343 Icon : TokenSwapFill ,
4444 subItems : [ ] ,
4545 } ,
46- {
47- name : 'Liquid Stake' ,
48- href : PagePath . LIQUID_STAKING ,
49- isInternal : true ,
50- Icon : WaterDropletIcon ,
51- subItems : [ ] ,
52- } ,
46+ // {
47+ // name: 'Liquid Stake',
48+ // href: PagePath.LIQUID_STAKING,
49+ // isInternal: true,
50+ // Icon: WaterDropletIcon,
51+ // subItems: [],
52+ // },
5353 {
5454 name : 'Bridge' ,
5555 href : PagePath . BRIDGE ,
@@ -64,13 +64,13 @@ const SIDEBAR_STATIC_ITEMS: SideBarItemProps[] = [
6464 Icon : CoinLine ,
6565 subItems : [ ] ,
6666 } ,
67- {
68- name : 'Claim Airdrop' ,
69- href : PagePath . CLAIM_AIRDROP ,
70- isInternal : true ,
71- Icon : GiftLineIcon ,
72- subItems : [ ] ,
73- } ,
67+ // {
68+ // name: 'Claim Airdrop',
69+ // href: PagePath.CLAIM_AIRDROP,
70+ // isInternal: true,
71+ // Icon: GiftLineIcon,
72+ // subItems: [],
73+ // },
7474] ;
7575
7676const SIDEBAR_FOOTER : SideBarFooterType = {
@@ -84,10 +84,12 @@ export default function getSidebarProps({
8484 polkadotJsDashboardUrl,
8585 nativeExplorerUrl,
8686 evmExplorerUrl,
87+ networkFeatures,
8788} : {
8889 polkadotJsDashboardUrl : string ;
8990 nativeExplorerUrl ?: string ;
9091 evmExplorerUrl ?: string ;
92+ networkFeatures : readonly NetworkFeature [ ] ;
9193} ) : MobileSidebarProps {
9294 const isProductionEnv = import . meta. env . PROD ;
9395
@@ -122,13 +124,17 @@ export default function getSidebarProps({
122124 } ,
123125 ]
124126 : [ ] ) ,
125- {
126- name : 'Testnet Faucet' ,
127- href : TANGLE_FAUCET_URL ,
128- isInternal : false ,
129- Icon : FaucetIcon ,
130- subItems : [ ] ,
131- } ,
127+ ...( networkFeatures . includes ( NetworkFeature . Faucet )
128+ ? [
129+ {
130+ name : 'Testnet Faucet' ,
131+ href : TANGLE_FAUCET_URL ,
132+ isInternal : false ,
133+ Icon : FaucetIcon ,
134+ subItems : [ ] ,
135+ } ,
136+ ]
137+ : [ ] ) ,
132138 ] ;
133139
134140 // Filter the sidebar items based on the current environment.
@@ -146,7 +152,7 @@ export default function getSidebarProps({
146152 Logo : TangleLogo ,
147153 footer : {
148154 ...SIDEBAR_FOOTER ,
149- extraContent : < PointsBanner /> ,
155+ // extraContent: <PointsBanner />,
150156 } ,
151157 items,
152158 logoLink : TANGLE_MKT_URL ,
0 commit comments