Skip to content

Commit 96b6c35

Browse files
authored
fix: /shield and /unshield routes (#2320)
1 parent ca440de commit 96b6c35

File tree

8 files changed

+10
-11
lines changed

8 files changed

+10
-11
lines changed

apps/namadillo/src/App/AccountOverview/TotalBalanceBanner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"

apps/namadillo/src/App/AccountOverview/UnshieldedAssetTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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>

apps/namadillo/src/App/AppRoutes.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 */}

apps/namadillo/src/App/Common/UnshieldAssetsModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
},

apps/namadillo/src/App/Layout/Navigation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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",

apps/namadillo/src/App/Transfer/AddressDropdown.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

apps/namadillo/src/App/Transfer/TransferDestination.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(() => {

apps/namadillo/src/App/routes.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)