@@ -5,6 +5,7 @@ import Peers from './components/Peers';
55import PeerDetail from './components/PeerDetail' ;
66import Stats from './components/Stats' ;
77import { BlockExplorer } from './components/BlockExplorer' ;
8+ import Networks from './components/Networks' ;
89import './App.css' ;
910
1011function Navigation ( ) {
@@ -74,13 +75,23 @@ function Navigation() {
7475 < Link
7576 to = "/blocks"
7677 className = { `inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium ${
77- location . pathname === '/blocks'
78- ? 'border-blue-500 text-gray-900'
78+ location . pathname === '/blocks'
79+ ? 'border-blue-500 text-gray-900'
7980 : 'border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700'
8081 } `}
8182 >
8283 Blocks
8384 </ Link >
85+ < Link
86+ to = "/networks"
87+ className = { `inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium ${
88+ location . pathname === '/networks'
89+ ? 'border-blue-500 text-gray-900'
90+ : 'border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700'
91+ } `}
92+ >
93+ Networks
94+ </ Link >
8495 </ div >
8596 </ div >
8697
@@ -151,13 +162,23 @@ function Navigation() {
151162 < Link
152163 to = "/blocks"
153164 className = { `block px-3 py-2 rounded-md text-base font-medium ${
154- location . pathname === '/blocks'
155- ? 'bg-blue-50 border-blue-500 text-blue-700'
165+ location . pathname === '/blocks'
166+ ? 'bg-blue-50 border-blue-500 text-blue-700'
156167 : 'text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800'
157168 } border-l-4`}
158169 >
159170 Blocks
160171 </ Link >
172+ < Link
173+ to = "/networks"
174+ className = { `block px-3 py-2 rounded-md text-base font-medium ${
175+ location . pathname === '/networks'
176+ ? 'bg-blue-50 border-blue-500 text-blue-700'
177+ : 'text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800'
178+ } border-l-4`}
179+ >
180+ Networks
181+ </ Link >
161182 </ div >
162183 </ div >
163184 </ nav >
@@ -177,6 +198,7 @@ function App() {
177198 < Route path = "/peers" element = { < Peers /> } />
178199 < Route path = "/peers/:peerID" element = { < PeerDetail /> } />
179200 < Route path = "/blocks" element = { < BlockExplorer /> } />
201+ < Route path = "/networks" element = { < Networks /> } />
180202 < Route path = "*" element = { < Navigate to = "/" replace /> } />
181203 </ Routes >
182204 </ div >
0 commit comments