Skip to content

Commit

Permalink
Fix translation keys issues in Payment terms dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
marcperezmonite committed Feb 18, 2025
1 parent 0c0892d commit 7804e06
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { components } from '@/api';
import { Dialog } from '@/components';
import { i18n } from '@lingui/core';

Check failure on line 5 in packages/sdk-react/src/components/receivables/InvoiceDetails/CreateReceivable/sections/components/PaymentTerms/PaymentTermsDialog.tsx

View workflow job for this annotation

GitHub Actions / Linting

'i18n' is defined but never used. Allowed unused vars must match /^_/u
import { t } from '@lingui/macro';
import { useLingui } from '@lingui/react';
import {
Typography,
DialogTitle,
Expand Down Expand Up @@ -32,6 +33,7 @@ export const PaymentTermsDialog = ({
selectedTerm,
}: PaymentTermsDialogProps) => {
const formName = `Monite-Form-paymentTerms-${useId()}`;
const { i18n } = useLingui();

const submitButtonText = selectedTerm ? t(i18n)`Save` : t(i18n)`Create`;
const titleText = selectedTerm
Expand Down

0 comments on commit 7804e06

Please sign in to comment.