File tree Expand file tree Collapse file tree 8 files changed +10
-11
lines changed
Expand file tree Collapse file tree 8 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ export const TotalBalanceBanner = (): JSX.Element => {
8686 { /* <aside className="hidden lg:flex gap-4 items-center flex-wrap">
8787 <ActionButton
8888 onClick={() =>
89- navigate(routes.maspShield )
89+ navigate(routes.shield )
9090 }
9191 size="sm"
9292 className="w-auto px-3 py-1.5"
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ const TransparentTokensTable = ({
112112 < div className = "relative group/tooltip" >
113113 < ActionButton
114114 size = "xs"
115- href = { `${ routes . maspShield } ?${ params . asset } =${ asset . symbol } &${ params . source } =${ destinationAddress } &${ params . destination } =${ shieldedAddress } ` }
115+ href = { `${ routes . shield } ?${ params . asset } =${ asset . symbol } &${ params . source } =${ destinationAddress } &${ params . destination } =${ shieldedAddress } ` }
116116 >
117117 Shield
118118 </ ActionButton >
Original file line number Diff line number Diff line change @@ -95,8 +95,8 @@ export const MainRoutes = (): JSX.Element => {
9595 < Route path = { routes . transfer } element = { < div /> } />
9696 < Route path = { routes . ibc } element = { < div /> } />
9797 < Route path = { routes . ibcWithdraw } element = { < div /> } />
98- < Route path = { routes . maspShield } element = { < div /> } />
99- < Route path = { routes . maspUnshield } element = { < div /> } />
98+ < Route path = { routes . shield } element = { < div /> } />
99+ < Route path = { routes . unshield } element = { < div /> } />
100100 </ Route >
101101
102102 { /* Transaction History */ }
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export const UnshieldAssetsModal = ({
3939 < img src = { getAssetImageUrl ( namadaAsset ( ) ) } className = "w-full" />
4040 </ span >
4141 ) ,
42- onClick : ( ) => goTo ( routes . maspUnshield ) ,
42+ onClick : ( ) => goTo ( routes . unshield ) ,
4343 children :
4444 "Unshield assets from your Namada shielded to transparent account" ,
4545 } ,
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export const Navigation = (): JSX.Element => {
3636 {
3737 label : "Shield" ,
3838 icon : < ShieldIcon /> ,
39- url : routes . maspShield ,
39+ url : routes . shield ,
4040 } ,
4141 {
4242 label : "Transfer" ,
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ export const AddressDropdown = ({
5454 const shieldedAccount = accounts ?. find (
5555 ( account ) => account . type === AccountType . ShieldedKeys
5656 ) ;
57- const isShieldingTxn = [ routes . maspShield , routes . ibc ] . includes (
58- location . pathname as "/masp/ shield" | "/ibc"
57+ const isShieldingTxn = [ routes . shield , routes . ibc ] . includes (
58+ location . pathname as "/shield" | "/ibc"
5959 ) ;
6060 const isIbcDestination = isIbcAddress ( destinationAddress ?? "" ) ;
6161
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ export const TransferDestination = ({
110110 ) ;
111111
112112 const isShieldingTransaction =
113- routes . maspShield === location . pathname || routes . ibc === location . pathname ;
113+ routes . shield === location . pathname || routes . ibc === location . pathname ;
114114
115115 // Make sure destination address isnt ibc if keplr is not connected
116116 useEffect ( ( ) => {
Original file line number Diff line number Diff line change @@ -17,10 +17,9 @@ export const routes = {
1717
1818 // Shield
1919 shield : "/shield" ,
20+ unshield : "/unshield" ,
2021
2122 // Masp
22- maspShield : "/masp/shield" ,
23- maspUnshield : "/masp/unshield" ,
2423 shieldAssets : "/shield-assets" ,
2524
2625 // Ibc
You can’t perform that action at this time.
0 commit comments