From f9c3e457ecbc1fc291af629e6292a46b4a7a4679 Mon Sep 17 00:00:00 2001 From: saml33 Date: Fri, 4 Aug 2023 22:03:19 +1000 Subject: [PATCH] rearrange trigger price elements --- components/swap/LimitSwapForm.tsx | 37 +++++++++++++++++-------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/components/swap/LimitSwapForm.tsx b/components/swap/LimitSwapForm.tsx index dbc4e30e..32dbcda0 100644 --- a/components/swap/LimitSwapForm.tsx +++ b/components/swap/LimitSwapForm.tsx @@ -29,7 +29,7 @@ import BuyTokenInput from './BuyTokenInput' import { notify } from 'utils/notifications' import * as sentry from '@sentry/nextjs' import { isMangoError } from 'types' -import Button, { IconButton } from '@components/shared/Button' +import Button, { LinkButton } from '@components/shared/Button' import Loading from '@components/shared/Loading' import TokenLogo from '@components/shared/TokenLogo' import InlineNotification from '@components/shared/InlineNotification' @@ -657,11 +657,18 @@ const LimitSwapForm = ({
-
-

{t('trade:trigger-price')}

- toggleFlipPrices(!flipPrices)}> - - +
+

{t('trade:trigger-price')}

+

= 0 ? 'text-th-up' : 'text-th-down' + }`} + > + {triggerPriceDifference + ? triggerPriceDifference.toFixed(2) + : '0.00'} + % +

@@ -691,18 +698,14 @@ const LimitSwapForm = ({
-
- = 0 ? 'text-th-up' : 'text-th-down' - } +
+ toggleFlipPrices(!flipPrices)} > - {triggerPriceDifference - ? triggerPriceDifference.toFixed(2) - : '0.00'} - % - - {triggerPriceSuffix} + {triggerPriceSuffix} + +
{formErrors.triggerPrice ? (