hide swap free collateral warning

This commit is contained in:
saml33 2023-09-19 08:14:01 +10:00
parent 2f8aeb7dc0
commit 5677250e39
1 changed files with 2 additions and 4 deletions

View File

@ -13,7 +13,6 @@ import { NUMBER_FORMAT_CLASSNAMES, withValueLimit } from './MarketSwapForm'
import MaxSwapAmount from './MaxSwapAmount' import MaxSwapAmount from './MaxSwapAmount'
import useUnownedAccount from 'hooks/useUnownedAccount' import useUnownedAccount from 'hooks/useUnownedAccount'
import InlineNotification from '@components/shared/InlineNotification' import InlineNotification from '@components/shared/InlineNotification'
import useMangoAccount from 'hooks/useMangoAccount'
import { SwapFormTokenListType } from './SwapFormTokenList' import { SwapFormTokenListType } from './SwapFormTokenList'
import { useTokenMax } from './useTokenMax' import { useTokenMax } from './useTokenMax'
@ -33,7 +32,6 @@ const SellTokenInput = ({
isTriggerOrder?: boolean isTriggerOrder?: boolean
}) => { }) => {
const { t } = useTranslation('common') const { t } = useTranslation('common')
const { mangoAccountAddress } = useMangoAccount()
const { group } = useMangoGroup() const { group } = useMangoGroup()
const { isUnownedAccount } = useUnownedAccount() const { isUnownedAccount } = useUnownedAccount()
const { const {
@ -90,7 +88,7 @@ const SellTokenInput = ({
</span> </span>
) : null} ) : null}
</div> </div>
{mangoAccountAddress ? ( {/* {mangoAccountAddress ? (
<div className="col-span-2 mt-1 flex justify-center"> <div className="col-span-2 mt-1 flex justify-center">
<InlineNotification <InlineNotification
type="warning" type="warning"
@ -99,7 +97,7 @@ const SellTokenInput = ({
hidePadding hidePadding
/> />
</div> </div>
) : null} ) : null} */}
{error ? ( {error ? (
<div className="col-span-2 mt-1 flex justify-center"> <div className="col-span-2 mt-1 flex justify-center">
<InlineNotification <InlineNotification