From 16930ff73f65343f0f13aadbe64c2b9df4774de4 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Wed, 11 Oct 2023 19:27:35 +0300 Subject: [PATCH] fix: type error in super block intro (#51895) --- .../Introduction/components/super-block-intro.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/client/src/templates/Introduction/components/super-block-intro.tsx b/client/src/templates/Introduction/components/super-block-intro.tsx index 81fa796a71d..7b4ed9130f7 100644 --- a/client/src/templates/Introduction/components/super-block-intro.tsx +++ b/client/src/templates/Introduction/components/super-block-intro.tsx @@ -16,7 +16,14 @@ function SuperBlockIntro(props: SuperBlockIntroProps): JSX.Element { title: string; intro: string[]; note: string; - } = t(`intro:${superBlock}`); + } = t< + string, + string & { + title: string; + intro: string[]; + note: string; + } + >(`intro:${superBlock}`); const { title: i18nSuperBlock, intro: superBlockIntroText,