Skip to content

Commit 2b3a303

Browse files
jjzhang332yingxuan
andauthored
chore: hide seedPeer route and tab (#584)
* chore: hide seedPeer route and tab Signed-off-by: yingxuan <[email protected]> * chore: skip cypress_test seedPeer Signed-off-by: yingxuan <[email protected]> --------- Signed-off-by: yingxuan <[email protected]> Co-authored-by: yingxuan <[email protected]>
1 parent 9cbec06 commit 2b3a303

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

src/components/clusters/show.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { createContext, useEffect, useState } from 'react';
88
import { getCluster, getClusterResponse } from '../../lib/api';
99
import { ReactComponent as TabCluster } from '../../assets/images/cluster/tab-cluster.svg';
1010
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';
1212
import { ReactComponent as TabPeer } from '../../assets/images/cluster/peer/tab-peer.svg';
1313
import styles from './show.module.css';
1414
import ErrorHandler from '../error-handler';
@@ -144,8 +144,8 @@ export default function NavTabs() {
144144
useEffect(() => {
145145
if (location.pathname?.split('/')?.[3] === 'schedulers') {
146146
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);
149149
} else if (location.pathname?.split('/')?.[3] === 'peers') {
150150
setValue(3);
151151
} else {
@@ -172,13 +172,13 @@ export default function NavTabs() {
172172
component: Link,
173173
to: `/clusters/${params.id}/schedulers`,
174174
},
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+
// },
182182
{
183183
id: 'tab-cluster',
184184
icon: <TabPeer className={styles.tableIcon} />,
@@ -230,8 +230,8 @@ export default function NavTabs() {
230230
<Typography variant="body1" color="inherit">
231231
{location.pathname?.split('/')?.[3] === 'schedulers'
232232
? 'Schedulers'
233-
: location.pathname?.split('/')?.[3] === 'seed-peers'
234-
? 'Seed Peers'
233+
// : location.pathname?.split('/')?.[3] === 'seed-peers'
234+
// ? 'Seed Peers'
235235
: 'Peers'}
236236
</Typography>
237237
)}

src/layouts/main.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import Clusters from '../components/clusters';
77
import EditCluster from '../components/clusters/edit';
88
import NewCluster from '../components/clusters/new';
99
import Cluster from '../components/clusters/information';
10-
import SeedPeers from '../components/clusters/seed-peers';
10+
// import SeedPeers from '../components/clusters/seed-peers';
1111
import Schedulers from '../components/clusters/schedulers/index';
1212
import ShowCluster from '../components/clusters/show';
1313
import ShowScheduler from '../components/clusters/schedulers/show';
14-
import ShowSeedPeer from '../components/clusters/seed-peers/show';
14+
// import ShowSeedPeer from '../components/clusters/seed-peers/show';
1515
import Peers from '../components/clusters/peers';
1616
import Profile from '../components/profile';
1717
import Users from '../components/users';
@@ -74,11 +74,11 @@ function Main() {
7474
<Route element={<ShowCluster />}>
7575
<Route path="/clusters/:id" element={<Cluster />} />
7676
<Route path="/clusters/:id/schedulers" element={<Schedulers />} />
77-
<Route path="/clusters/:id/seed-peers" element={<SeedPeers />} />
77+
{/* <Route path="/clusters/:id/seed-peers" element={<SeedPeers />} /> */}
7878
<Route path="/clusters/:id/peers" element={<Peers />} />
7979
</Route>
8080
<Route path="/clusters/:id/schedulers/:id" element={<ShowScheduler />} />
81-
<Route path="/clusters/:id/seed-peers/:id" element={<ShowSeedPeer />} />
81+
{/* <Route path="/clusters/:id/seed-peers/:id" element={<ShowSeedPeer />} /> */}
8282
<Route path="/profile" element={<Profile />} />
8383
<Route path="/developer/personal-access-tokens" element={<Tokens />} />
8484
<Route path="/developer/personal-access-tokens/new" element={<NewTokens />} />

0 commit comments

Comments
 (0)