Skip to content

Commit

Permalink
fix: rename route priority
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Feb 18, 2022
1 parent 03afc51 commit 833cfa9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const AdvancedPreferences = () => {
}}
>
<MenuItem value={1}>
{t(`swap.routePriority.recommended`)}
{t(`settings.routePriority.recommended`)}
</MenuItem>
</Select>
</FormControl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const SettingsDrawer = forwardRef<SettingsDrawerBase, DrawerProps>(
lineHeight="normal"
ml={1}
>
{t(`settings.route`)}
{t(`settings.routePriority.title`)}
</Typography>
</Box>
<FormControl fullWidth>
Expand All @@ -45,7 +45,7 @@ export const SettingsDrawer = forwardRef<SettingsDrawerBase, DrawerProps>(
inputProps={{ ...register(SwapFormKey.SwapRoute) }}
>
<MenuItem value={1}>
{t(`swap.routePriority.recommended`)}
{t(`settings.routePriority.recommended`)}
</MenuItem>
</Select>
</FormControl>
Expand Down
9 changes: 4 additions & 5 deletions packages/widget/src/i18n/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
"maxAmount": "({{amount}})",
"price": "\u2248 {{price, currency(currency: USD)}}",
"sendToRecipient": "Send to recipient",
"routePriority": {
"title": "Route priority",
"recommended": "Recommended"
},
"recipientsAddress": "Recipient's {{chain}} address",
"correctnessConfirmation": "I confirm that the address above is correct",
"gas": "Gas:",
Expand All @@ -35,7 +31,10 @@
"walletNotConnected": "Please, connect your wallet."
},
"settings": {
"route": "Route",
"routePriority": {
"title": "Route priority",
"recommended": "Recommended"
},
"slippage": "Slippage",
"gasPrice": {
"title": "Gas price",
Expand Down
4 changes: 2 additions & 2 deletions packages/widget/src/pages/SwapPage/SwapPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export const SwapPage: React.FC<SwapPageProps> = ({ settingsRef }) => {
color="text.primary"
ml={1}
>
{t(`swap.routePriority.title`)}
{t(`settings.routePriority.title`)}
</Typography>
</Box>
<FormControl sx={{ width: '50%' }}>
Expand All @@ -155,7 +155,7 @@ export const SwapPage: React.FC<SwapPageProps> = ({ settingsRef }) => {
inputProps={{ ...register(SwapFormKey.RoutePriority) }}
>
<MenuItem value={1}>
{t(`swap.routePriority.recommended`)}
{t(`settings.routePriority.recommended`)}
</MenuItem>
</Select>
</FormControl>
Expand Down

0 comments on commit 833cfa9

Please sign in to comment.