Skip to content

Commit

Permalink
feat: optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
kiner-tang committed Dec 28, 2023
1 parent b2d3996 commit 03f880f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web3/src/hooks/useIntl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { Locale, ConfigConsumerProps, RequiredLocale } from '@ant-design/we

type ComponentName = keyof Locale;

interface IntlType<T extends ComponentName> {
interface IntlType<T extends ComponentName = any> {
messages: RequiredLocale[T];
getMessage: (message: string, values?: Record<string, string>) => string;
}
Expand Down

0 comments on commit 03f880f

Please sign in to comment.