From c32f99b310a5171f44efcf15ff869d1378af0dab Mon Sep 17 00:00:00 2001 From: shuai Date: Mon, 23 Dec 2024 15:16:45 +0800 Subject: [PATCH] fix: translate list view model --- ui/src/components/QuestionList/index.tsx | 4 ++-- ui/tsconfig.json | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ui/src/components/QuestionList/index.tsx b/ui/src/components/QuestionList/index.tsx index 88c48de3e..5111b2d55 100644 --- a/ui/src/components/QuestionList/index.tsx +++ b/ui/src/components/QuestionList/index.tsx @@ -120,10 +120,10 @@ const QuestionList: FC = ({ {t('view', { keyPrefix: 'btns' })} - {t('view', { keyPrefix: 'card' })} + {t('card', { keyPrefix: 'btns' })} - {t('view', { keyPrefix: 'compact' })} + {t('compact', { keyPrefix: 'btns' })} diff --git a/ui/tsconfig.json b/ui/tsconfig.json index ac6a549eb..648dd0253 100644 --- a/ui/tsconfig.json +++ b/ui/tsconfig.json @@ -19,7 +19,6 @@ "isolatedModules": true, "noImplicitAny": false, "ignoreDeprecations": "5.0", - "suppressImplicitAnyIndexErrors": true, "noEmit": true, "jsx": "react-jsx", "baseUrl": "./", @@ -40,4 +39,4 @@ "exclude": [ "src/plugins" ] -} \ No newline at end of file +}