fix: type error in super block intro (#51895)

pull/51915/head
Muhammed Mustafa 2023-10-11 19:27:35 +03:00 committed by GitHub
parent 6d9746dfe9
commit 16930ff73f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -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,