Skip to content

Commit 6f0a780

Browse files
committed
fix: cleanup
1 parent d358413 commit 6f0a780

File tree

2 files changed

+7
-46
lines changed

2 files changed

+7
-46
lines changed

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

Lines changed: 1 addition & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
import { ActionButton } from "@namada/components";
21
import { AccountType } from "@namada/types";
32
import { ConnectExtensionButton } from "App/Common/ConnectExtensionButton";
43
import { TransactionInProgressSpinner } from "App/Common/TransactionInProgressSpinner";
54
import { UnshieldAssetsModal } from "App/Common/UnshieldAssetsModal";
65
import { routes } from "App/routes";
76
import { defaultAccountAtom } from "atoms/accounts";
8-
import {
9-
applicationFeaturesAtom,
10-
signArbitraryEnabledAtom,
11-
} from "atoms/settings";
7+
import { signArbitraryEnabledAtom } from "atoms/settings";
128
import { useUserHasAccount } from "hooks/useIsAuthenticated";
139
import { useAtomValue } from "jotai";
1410
import { useState } from "react";
@@ -24,9 +20,6 @@ export const TopNavigation = (): JSX.Element => {
2420

2521
const userHasAccount = useUserHasAccount();
2622
const signArbitraryEnabled = useAtomValue(signArbitraryEnabledAtom);
27-
const { maspEnabled, namTransfersEnabled } = useAtomValue(
28-
applicationFeaturesAtom
29-
);
3023
const defaultAccount = useAtomValue(defaultAccountAtom);
3124
const location = useLocation();
3225
const navigate = useNavigate();
@@ -53,44 +46,7 @@ export const TopNavigation = (): JSX.Element => {
5346

5447
return (
5548
<div className="flex-1 flex items-center gap-4 sm:gap-6">
56-
<div className="hidden lg:grid lg:grid-cols-3 gap-2">
57-
{maspEnabled && (
58-
<ActionButton
59-
className="py-2"
60-
size="xs"
61-
onClick={() =>
62-
navigate(routes.shieldAssets, {
63-
state: { backgroundLocation: location },
64-
})
65-
}
66-
>
67-
Shield Assets
68-
</ActionButton>
69-
)}
70-
{maspEnabled && (
71-
<ActionButton
72-
className="py-2"
73-
outlineColor="yellow"
74-
size="xs"
75-
onClick={() => setUnshieldingModalOpen(true)}
76-
>
77-
Unshield
78-
</ActionButton>
79-
)}
80-
{(maspEnabled || namTransfersEnabled) && (
81-
<ActionButton
82-
href={routes.transfer}
83-
className="py-2"
84-
size="xs"
85-
backgroundColor="white"
86-
>
87-
Transfer
88-
</ActionButton>
89-
)}
90-
</div>
91-
9249
<div className="flex-1" />
93-
9450
{defaultAccount.data?.type !== AccountType.Ledger &&
9551
signArbitraryEnabled && (
9652
<button

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,12 @@ export const TransferSource = ({
8686
: "keplr";
8787

8888
return (
89-
<div className="relative bg-neutral-800 rounded-lg px-4 py-5">
89+
<div
90+
className={clsx(
91+
"relative bg-neutral-800 rounded-lg px-4 py-5 border-2",
92+
selectedTokenType === "shielded" ? "border-yellow-400" : "border-white"
93+
)}
94+
>
9095
<header className="relative flex justify-between">
9196
<SelectedAsset
9297
asset={asset}

0 commit comments

Comments
 (0)