This repository was archived by the owner on Jun 16, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
src/renderer/screens/exchange/Swap2/Form/FormSummary Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// @flow
22import React from "react" ;
3- import TextBase from "~/renderer/components/Text" ;
4- import ButtonBase from "~/renderer/components/Button" ;
3+ import { useTranslation } from "react-i18next" ;
54import styled from "styled-components" ;
5+ import ButtonBase from "~/renderer/components/Button" ;
6+ import TextBase from "~/renderer/components/Text" ;
67import type { ThemedComponent } from "~/renderer/styles/StyleProvider" ;
78
89const Container : ThemedComponent < { } > = styled . div `
@@ -47,11 +48,12 @@ const SummaryValue = ({
4748 handleChange ?: Function ,
4849 children ?: React$Node ,
4950} ) => {
51+ const { t } = useTranslation ( ) ;
5052 return (
5153 < Container >
5254 { children }
5355 { value && < Text > { value } </ Text > }
54- { handleChange ? < Button onClick = { handleChange } > Edit </ Button > : null }
56+ { handleChange ? < Button onClick = { handleChange } > { t ( "swap2.form.changeCTA" ) } </ Button > : null }
5557 </ Container >
5658 ) ;
5759} ;
Original file line number Diff line number Diff line change 227227 "kyc" : " KYC"
228228 },
229229 "form" : {
230+ "changeCTA" : " Change" ,
230231 "ratesDrawer" : {
231232 "title" : " Rate" ,
232233 "quote" : " Quote" ,
You can’t perform that action at this time.
0 commit comments