fix label on swap form; dont show health impact twice

This commit is contained in:
tjs 2022-12-29 03:23:58 -05:00
parent 0ed86e659f
commit a0ff12aede
2 changed files with 1 additions and 6 deletions

View File

@ -285,7 +285,6 @@ const SwapForm = () => {
routes={routes}
selectedRoute={selectedRoute}
setSelectedRoute={setSelectedRoute}
maintProjectedHealth={maintProjectedHealth}
/>
</Transition>
<EnterBottomExitBottom
@ -452,7 +451,7 @@ const SwapForm = () => {
<div className="flex justify-between">
<Tooltip content={t('trade:tooltip-slippage')} delay={250}>
<p className="tooltip-underline text-sm text-th-fgd-3">
Est. {t('swap:slippage')}
Price Impact
</p>
</Tooltip>
<p className="text-right font-mono text-sm text-th-fgd-2">

View File

@ -39,11 +39,9 @@ import useLocalStorageState from 'hooks/useLocalStorageState'
import { Howl } from 'howler'
import { INITIAL_SOUND_SETTINGS } from '@components/settings/SoundSettings'
import Tooltip from '@components/shared/Tooltip'
import HealthImpact from '@components/shared/HealthImpact'
type JupiterRouteInfoProps = {
amountIn: Decimal
maintProjectedHealth: number
onClose: () => void
routes: RouteInfo[] | undefined
selectedRoute: RouteInfo | undefined
@ -145,7 +143,6 @@ const successSound = new Howl({
const SwapReviewRouteInfo = ({
amountIn,
maintProjectedHealth,
onClose,
routes,
selectedRoute,
@ -406,7 +403,6 @@ const SwapReviewRouteInfo = ({
</p>
) : null}
</div>
<HealthImpact maintProjectedHealth={maintProjectedHealth} />
{borrowAmount ? (
<>
<div className="flex justify-between">