From 08d72fb0ab4e812bf4d73514eab05d7649fceb16 Mon Sep 17 00:00:00 2001 From: NFish Date: Thu, 29 May 2025 18:08:44 +0800 Subject: [PATCH] fix: update i18n --- web/app/(shareLayout)/webapp-signin/page.tsx | 14 +++++++------- web/app/components/base/app-unavailable.tsx | 5 ++++- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/web/app/(shareLayout)/webapp-signin/page.tsx b/web/app/(shareLayout)/webapp-signin/page.tsx index e7609f1de0..46b8a843b6 100644 --- a/web/app/(shareLayout)/webapp-signin/page.tsx +++ b/web/app/(shareLayout)/webapp-signin/page.tsx @@ -68,15 +68,15 @@ const WebSSOForm: FC = () => { } if (message) { - return
- - {t('share.login.backToHome')} + return
+ + {t('share.login.backToHome')}
} if (!redirectUrl) { showErrorToast('redirect url is invalid.') return
- +
} if (webAppAccessMode && webAppAccessMode === AccessMode.PUBLIC) { @@ -98,9 +98,9 @@ const WebSSOForm: FC = () => { if (webAppAccessMode && webAppAccessMode === AccessMode.EXTERNAL_MEMBERS) return - return
- - {t('share.login.backToHome')} + return
+ + {t('share.login.backToHome')}
} diff --git a/web/app/components/base/app-unavailable.tsx b/web/app/components/base/app-unavailable.tsx index 4e835cbfcf..928c850262 100644 --- a/web/app/components/base/app-unavailable.tsx +++ b/web/app/components/base/app-unavailable.tsx @@ -1,4 +1,5 @@ 'use client' +import classNames from '@/utils/classnames' import type { FC } from 'react' import React from 'react' import { useTranslation } from 'react-i18next' @@ -7,17 +8,19 @@ type IAppUnavailableProps = { code?: number | string isUnknownReason?: boolean unknownReason?: string + className?: string } const AppUnavailable: FC = ({ code = 404, isUnknownReason, unknownReason, + className, }) => { const { t } = useTranslation() return ( -
+