From 574d51bd409a31f0671363c7631b58171466168a Mon Sep 17 00:00:00 2001 From: saml33 Date: Mon, 14 Aug 2023 11:30:28 +1000 Subject: [PATCH] add beta label --- components/shared/TabUnderline.tsx | 9 +++++++- components/swap/SwapForm.tsx | 33 ++++++++++++++++-------------- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/components/shared/TabUnderline.tsx b/components/shared/TabUnderline.tsx index 44ebd92f..8810b2b8 100644 --- a/components/shared/TabUnderline.tsx +++ b/components/shared/TabUnderline.tsx @@ -67,7 +67,14 @@ const TabUnderline = ({ `} key={`${value}` + i} > - {names ? names[i] : t(`${value}`)} + + {names ? names[i] : t(`${value}`)} + {value === 'trade:trigger-order' ? ( + + beta + + ) : null} + ))} diff --git a/components/swap/SwapForm.tsx b/components/swap/SwapForm.tsx index b882cafc..3471d8d8 100644 --- a/components/swap/SwapForm.tsx +++ b/components/swap/SwapForm.tsx @@ -1,11 +1,11 @@ import { useState, useCallback, useMemo, useEffect } from 'react' import { PublicKey } from '@solana/web3.js' -import { Cog8ToothIcon } from '@heroicons/react/20/solid' +import { PencilIcon } from '@heroicons/react/20/solid' import mangoStore from '@store/mangoStore' import ContentBox from '../shared/ContentBox' import { useTranslation } from 'next-i18next' import SwapFormTokenList from './SwapFormTokenList' -import { IconButton, LinkButton } from '../shared/Button' +import { LinkButton } from '../shared/Button' import { EnterBottomExitBottom } from '../shared/Transitions' import { HealthType } from '@blockworks-foundation/mango-v4' import { SWAP_MARGIN_KEY } from '../../utils/constants' @@ -160,7 +160,7 @@ const SwapForm = () => {
{isWhiteListed ? ( -
+
{ />
) : null} -
- setShowSettings(true)} - > - - -
{swapOrLimit === 'swap' ? ( - + <> + {/*
+ setShowSettings(true)} + > + + +
*/} + + ) : ( { {t('swap:max-slippage')}

setShowSettings(true)} > - {slippage}% + {slippage}% +