1- import { ActionButton } from "@namada/components" ;
21import { AccountType } from "@namada/types" ;
32import { ConnectExtensionButton } from "App/Common/ConnectExtensionButton" ;
43import { TransactionInProgressSpinner } from "App/Common/TransactionInProgressSpinner" ;
54import { UnshieldAssetsModal } from "App/Common/UnshieldAssetsModal" ;
65import { routes } from "App/routes" ;
76import { defaultAccountAtom } from "atoms/accounts" ;
8- import {
9- applicationFeaturesAtom ,
10- signArbitraryEnabledAtom ,
11- } from "atoms/settings" ;
7+ import { signArbitraryEnabledAtom } from "atoms/settings" ;
128import { useUserHasAccount } from "hooks/useIsAuthenticated" ;
139import { useAtomValue } from "jotai" ;
1410import { 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
0 commit comments