Skip to content

Commit

Permalink
Refactor Lingui localization in Synthetics and GlpSwap components
Browse files Browse the repository at this point in the history
  • Loading branch information
midas-myth committed May 17, 2024
1 parent 057ba90 commit 3334d40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/components/Glp/GlpSwap.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ export default function GlpSwap(props) {
const isMetamaskMobile = useIsMetamaskMobile();
const swapLabel = isBuying ? "BuyGlp" : "SellGlp";
const tabLabel = isBuying ? t`Buy GLP` : t`Sell GLP`;
const { _ } = useLingui();
const tabOptions = useMemo(() => [_`Buy GLP`, _`Sell GLP`], [_]);
const tabOptions = useMemo(() => [t`Buy GLP`, t`Sell GLP`], []);

const { active, signer, account } = useWallet();
const { openConnectModal } = useConnectModal();
Expand Down
2 changes: 1 addition & 1 deletion src/components/Synthetics/Claims/ClaimableCard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Trans, msg, t } from "@lingui/macro";
import { Trans, msg } from "@lingui/macro";
import ExternalLink from "components/ExternalLink/ExternalLink";
import {
selectClaimsFundingFeesClaimableTotal,
Expand Down

0 comments on commit 3334d40

Please sign in to comment.