diff --git a/components/account/AccountPage.tsx b/components/account/AccountPage.tsx index d94ce661..be701fb5 100644 --- a/components/account/AccountPage.tsx +++ b/components/account/AccountPage.tsx @@ -20,8 +20,6 @@ import { ArrowsPointingOutIcon, ChartBarIcon, ClockIcon, - EyeIcon, - EyeSlashIcon, } from '@heroicons/react/20/solid' import { Transition } from '@headlessui/react' import AccountTabs from './AccountTabs' @@ -32,8 +30,6 @@ import Change from '../shared/Change' import Tooltip from '@components/shared/Tooltip' import { ANIMATION_SETTINGS_KEY, - HIDE_ACCOUNT_VALUE_KEY, - HIDE_PNL_KEY, // IS_ONBOARDED_KEY } from 'utils/constants' // import { useWallet } from '@solana/wallet-adapter-react' @@ -76,11 +72,6 @@ const AccountPage = () => { ANIMATION_SETTINGS_KEY, INITIAL_ANIMATION_SETTINGS ) - const [hideAccountValue, setHideAccountValue] = useLocalStorageState( - HIDE_ACCOUNT_VALUE_KEY, - false - ) - const [hidePnl, setHidePnl] = useLocalStorageState(HIDE_PNL_KEY, false) useEffect(() => { if (mangoAccountAddress) { @@ -241,72 +232,51 @@ const AccountPage = () => {
- {t('account-value')} -
-+ {t('account-value')} +
+*****
- )} +{t('today')}
- {t('pnl')} -
-+ {t('pnl')} +
+- {!hidePnl ? formatFixedDecimals(accountPnl, true, true) : '*****'} + {formatFixedDecimals(accountPnl, true, true)}
*****
- )} +{t('today')}