-
Notifications
You must be signed in to change notification settings - Fork 407
Text changes and translations #2007
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release-88
Are you sure you want to change the base?
Conversation
Deploying gmx-interface with
|
| Latest commit: |
d7063da
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://3596481d.gmx-interface.pages.dev |
| Branch Preview URL: | https://text-changes.gmx-interface.pages.dev |
Deploying gmx-interface-home with
|
| Latest commit: |
d7063da
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://48c5587c.gmx-interface-home.pages.dev |
| Branch Preview URL: | https://text-changes.gmx-interface-home.pages.dev |
| title={t`Rank`} | ||
| width={6} | ||
| tooltip={ | ||
| <Trans values={{ minCollateral: formatUsd(MIN_COLLATERAL_USD_IN_LEADERBOARD, { displayDecimals: 0 }) }}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 problems:
- we do not use such value substitution in our code
- eslint will raise error here, because component for value created each render
to resolve it just use value directly in position of {{ minCollateral }}
example in our codebase:
| disabledMessage={<Trans>Select a pool containing {tokenData.symbol} to use it as collateral.</Trans>} |
| title={t`Rank`} | ||
| width={6} | ||
| tooltip={ | ||
| <Trans values={{ minCollateral: formatUsd(MIN_COLLATERAL_USD_IN_LEADERBOARD, { displayDecimals: 0 }) }}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue with value substitution
src/components/TradeBox/TradeBox.tsx
Outdated
| The actual execution price may differ from the set limit price due to fees and price impact. This | ||
| ensures that you receive at least the minimum receive amount. | ||
| The execution price may differ from the set limit price due to fees and price impact. This | ||
| ensures that you receive at least the minimum receive amount. <a href="https://docs.gmx.io/docs/trading/v2/#limit-orders">Read more</a>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better is use ExternalLink component with newTab prop (to open in new window) and then verify how it looks
| collateralTokenPriceMax, | ||
| initialCollateralToken, | ||
| totalImpactUsd, | ||
| totalImpactUsd = 0n, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you sure in this change? not expected to see it text changes and translations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r87 vs master change, not mine. i will change target to r88 once created
No description provided.