diff --git a/src/assets/translations/en/main.json b/src/assets/translations/en/main.json index 7ed146caad8..e63df42ed40 100644 --- a/src/assets/translations/en/main.json +++ b/src/assets/translations/en/main.json @@ -907,7 +907,7 @@ } }, "permit2": { - "title": "Permit token transfer", + "title": "Permit token transfer:", "description": "Grant the smart contract permission to use %{symbol} on your behalf.", "tooltip": "This trade has an added security feature called 'Permit2' which requires you to grant permission for the application to complete the trade on your behalf.", "error": "A problem occurred signing Permit2 message", diff --git a/src/components/MultiHopTrade/components/MultiHopTradeConfirm/components/ApprovalStep/components/ApprovalContent.tsx b/src/components/MultiHopTrade/components/MultiHopTradeConfirm/components/ApprovalStep/components/ApprovalContent.tsx index aa0a2ea545b..e99bfb9b3c1 100644 --- a/src/components/MultiHopTrade/components/MultiHopTradeConfirm/components/ApprovalStep/components/ApprovalContent.tsx +++ b/src/components/MultiHopTrade/components/MultiHopTradeConfirm/components/ApprovalStep/components/ApprovalContent.tsx @@ -1,4 +1,5 @@ import { Box, Button, Card, CircularProgress, Icon, Tooltip, VStack } from '@chakra-ui/react' +import type { InterpolationOptions } from 'node-polyglot' import { FaInfoCircle } from 'react-icons/fa' import { useTranslate } from 'react-polyglot' import { Row } from 'components/Row/Row' @@ -9,6 +10,7 @@ export type ApprovalContentProps = { buttonTranslation: string isDisabled: boolean isLoading: boolean + subHeadingTranslation?: string | [string, InterpolationOptions] titleTranslation: string tooltipTranslation: string topRightContent?: JSX.Element @@ -21,6 +23,7 @@ export const ApprovalContent = ({ buttonTranslation, isDisabled, isLoading, + subHeadingTranslation, titleTranslation, tooltipTranslation, topRightContent, @@ -35,7 +38,7 @@ export const ApprovalContent = ({ - + @@ -48,6 +51,13 @@ export const ApprovalContent = ({ )} + {subHeadingTranslation && ( + + + + + + )} {children}