From 5acf0bd588b8f7ecd04d420228ec0a55e3c13c10 Mon Sep 17 00:00:00 2001 From: TechQuery Date: Fri, 2 Aug 2024 02:11:33 +0800 Subject: [PATCH] [fix] Error Message exposing --- components/NotFoundCard.tsx | 12 +++++++++--- pages/_error.tsx | 6 +++--- styles/globals.less | 4 ++++ 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/components/NotFoundCard.tsx b/components/NotFoundCard.tsx index e944a66..3cf6891 100644 --- a/components/NotFoundCard.tsx +++ b/components/NotFoundCard.tsx @@ -1,11 +1,17 @@ +import { ErrorProps } from 'next/error'; import { FC } from 'react'; import { i18n } from '../models/Translation'; -export const NotFoundCard: FC = () => +export const NotFoundCard: FC = ({ title }) => i18n.currentLanguage.startsWith('zh') ? ( - // @ts-ignore -