fix(menu): Making BCH page the default startup page

This commit is contained in:
Chris Troutner
2025-03-15 08:23:17 -07:00
parent a689a9b3e6
commit 6de9ad944c
2 changed files with 9 additions and 19 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ function AppBody (props) {
return (
<>
<Routes>
<Route path='/' element={<GetBalance wallet={appData.wallet} />} />
<Route path='/' element={<BchSend appData={appData} />} />
<Route path='/balance' element={<GetBalance wallet={appData.wallet} />} />
<Route path='/bch' element={<BchSend appData={appData} />} />
<Route path='/wallet' element={<Wallet appData={appData} />} />
+8 -18
View File
@@ -37,20 +37,15 @@ function NavMenu (props) {
<Navbar.Toggle aria-controls='responsive-navbar-nav' />
<Navbar.Collapse id='responsive-navbar-nav'>
<Nav className='mr-auto'>
<NavLink
className={(currentPath === '/balance' || currentPath === '/') ? 'nav-link-active' : 'nav-link-inactive'}
to='/balance'
onClick={handleClickEvent}
>
Check Balance
</NavLink>
<NavLink
className={(currentPath === '/bch') ? 'nav-link-active' : 'nav-link-inactive'}
className={(currentPath === '/bch' || currentPath === '/') ? 'nav-link-active' : 'nav-link-inactive'}
to='/bch'
onClick={handleClickEvent}
>
BCH
</NavLink>
<NavLink
className={currentPath === '/wallet' ? 'nav-link-active' : 'nav-link-inactive'}
to='/wallet'
@@ -59,6 +54,7 @@ function NavMenu (props) {
>
Wallet
</NavLink>
<NavLink
className={currentPath === '/slp-tokens' ? 'nav-link-active' : 'nav-link-inactive'}
to='/slp-tokens'
@@ -66,19 +62,13 @@ function NavMenu (props) {
>
Tokens
</NavLink>
<NavLink
className={currentPath === '/Placeholder2' ? 'nav-link-active' : 'nav-link-inactive'}
to='/Placeholder2'
className={(currentPath === '/balance') ? 'nav-link-active' : 'nav-link-inactive'}
to='/balance'
onClick={handleClickEvent}
>
Placeholder2
</NavLink>
<NavLink
className={currentPath === '/placeholder3' ? 'nav-link-active' : 'nav-link-inactive'}
to='/placeholder3'
onClick={handleClickEvent}
>
Placeholder 3
Check Balance
</NavLink>
</Nav>
</Navbar.Collapse>