From 03f880f3fa0fec40d7c384c4e1ce30a7a47dd9e0 Mon Sep 17 00:00:00 2001 From: kiner-tang <1127031143@qq.com> Date: Thu, 28 Dec 2023 15:40:50 +0800 Subject: [PATCH] feat: optimize code --- packages/web3/src/hooks/useIntl.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web3/src/hooks/useIntl.tsx b/packages/web3/src/hooks/useIntl.tsx index 855a883f6..9eadd06a6 100644 --- a/packages/web3/src/hooks/useIntl.tsx +++ b/packages/web3/src/hooks/useIntl.tsx @@ -4,7 +4,7 @@ import type { Locale, ConfigConsumerProps, RequiredLocale } from '@ant-design/we type ComponentName = keyof Locale; -interface IntlType { +interface IntlType { messages: RequiredLocale[T]; getMessage: (message: string, values?: Record) => string; }