@@ -8,7 +8,7 @@ import { createContext, useEffect, useState } from 'react';
8
8
import { getCluster , getClusterResponse } from '../../lib/api' ;
9
9
import { ReactComponent as TabCluster } from '../../assets/images/cluster/tab-cluster.svg' ;
10
10
import { ReactComponent as TabScheduler } from '../../assets/images/cluster/scheduler/tab-scheduler.svg' ;
11
- import { ReactComponent as TabSeedPeer } from '../../assets/images/cluster/seed-peer/tab-seed-peer.svg' ;
11
+ // import { ReactComponent as TabSeedPeer } from '../../assets/images/cluster/seed-peer/tab-seed-peer.svg';
12
12
import { ReactComponent as TabPeer } from '../../assets/images/cluster/peer/tab-peer.svg' ;
13
13
import styles from './show.module.css' ;
14
14
import ErrorHandler from '../error-handler' ;
@@ -144,8 +144,8 @@ export default function NavTabs() {
144
144
useEffect ( ( ) => {
145
145
if ( location . pathname ?. split ( '/' ) ?. [ 3 ] === 'schedulers' ) {
146
146
setValue ( 1 ) ;
147
- } else if ( location . pathname ?. split ( '/' ) ?. [ 3 ] === 'seed-peers' ) {
148
- setValue ( 2 ) ;
147
+ // } else if (location.pathname?.split('/')?.[3] === 'seed-peers') {
148
+ // setValue(2);
149
149
} else if ( location . pathname ?. split ( '/' ) ?. [ 3 ] === 'peers' ) {
150
150
setValue ( 3 ) ;
151
151
} else {
@@ -172,13 +172,13 @@ export default function NavTabs() {
172
172
component : Link ,
173
173
to : `/clusters/${ params . id } /schedulers` ,
174
174
} ,
175
- {
176
- id : 'tab-cluster' ,
177
- icon : < TabSeedPeer className = { styles . tableIcon } /> ,
178
- label : 'Seed Peers' ,
179
- component : Link ,
180
- to : `/clusters/${ params . id } /seed-peers` ,
181
- } ,
175
+ // {
176
+ // id: 'tab-cluster',
177
+ // icon: <TabSeedPeer className={styles.tableIcon} />,
178
+ // label: 'Seed Peers',
179
+ // component: Link,
180
+ // to: `/clusters/${params.id}/seed-peers`,
181
+ // },
182
182
{
183
183
id : 'tab-cluster' ,
184
184
icon : < TabPeer className = { styles . tableIcon } /> ,
@@ -230,8 +230,8 @@ export default function NavTabs() {
230
230
< Typography variant = "body1" color = "inherit" >
231
231
{ location . pathname ?. split ( '/' ) ?. [ 3 ] === 'schedulers'
232
232
? 'Schedulers'
233
- : location . pathname ?. split ( '/' ) ?. [ 3 ] === 'seed-peers'
234
- ? 'Seed Peers'
233
+ // : location.pathname?.split('/')?.[3] === 'seed-peers'
234
+ // ? 'Seed Peers'
235
235
: 'Peers' }
236
236
</ Typography >
237
237
) }
0 commit comments