Skip to content

Commit

Permalink
Fix performance issue in Trans component (#1646)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrodurek authored Jun 22, 2023
1 parent 8fc3eec commit d1e762d
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions TransWithoutContext.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
import type {
i18n,
ParseKeys,
Namespace,
TypeOptions,
TOptions,
TFunction,
KeyPrefix,
} from 'i18next';
import type { i18n, ParseKeys, Namespace, TypeOptions, TOptions, TFunction } from 'i18next';
import * as React from 'react';

type _DefaultNamespace = TypeOptions['defaultNS'];
Expand Down Expand Up @@ -38,6 +30,6 @@ export function Trans<
Key extends ParseKeys<Ns, TOpt, KPrefix>,
Ns extends Namespace = _DefaultNamespace,
TOpt extends TOptions = {},
KPrefix extends KeyPrefix<Ns> = undefined,
KPrefix = undefined,
E = React.HTMLProps<HTMLDivElement>,
>(props: TransProps<Key, Ns, TOpt, KPrefix, E>): React.ReactElement;

0 comments on commit d1e762d

Please sign in to comment.