From f7a2f7a727999bd4b059369f7072ce0ede2f686c Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Tue, 16 Jan 2024 12:14:09 +0800 Subject: [PATCH] fix: dataset sidebar (#2048) --- .../(datasetDetailLayout)/[datasetId]/layout.tsx | 10 +++++----- web/app/components/app-sidebar/index.tsx | 4 ++-- web/app/components/billing/pricing/plan-item.tsx | 2 -- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout.tsx b/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout.tsx index bd93da43e7..86e3197d9e 100644 --- a/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout.tsx +++ b/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/layout.tsx @@ -55,8 +55,8 @@ const LikedItem = ({ isMobile, }: ILikedItemProps) => { return ( - -
+ +
{type === 'app' && (
@@ -64,7 +64,7 @@ const LikedItem = ({
)}
- {!isMobile &&
{detail?.name || '--'}
} + {!isMobile &&
{detail?.name || '--'}
} ) } @@ -197,14 +197,14 @@ const DatasetDetailLayout: FC = (props) => { return return ( -
+
{!hideSideBar && } + extraInfo={mode => } iconType={datasetRes?.data_source_type === DataSourceType.NOTION ? 'notion' : 'dataset'} />} - extraInfo?: React.ReactNode + extraInfo?: (modeState: string) => React.ReactNode } const AppDetailNav = ({ title, desc, icon, icon_background, navigation, extraInfo, iconType = 'app' }: IAppDetailNavProps) => { @@ -72,7 +72,7 @@ const AppDetailNav = ({ title, desc, icon, icon_background, navigation, extraInf ) })} - {extraInfo ?? null} + {extraInfo && extraInfo(modeState)} { !isMobile && ( diff --git a/web/app/components/billing/pricing/plan-item.tsx b/web/app/components/billing/pricing/plan-item.tsx index c2222579c4..bd7c265cc0 100644 --- a/web/app/components/billing/pricing/plan-item.tsx +++ b/web/app/components/billing/pricing/plan-item.tsx @@ -107,7 +107,6 @@ const PlanItem: FC = ({
{t('billing.plansCommon.supportItems.emailSupport')}
+ {t('billing.plansCommon.supportItems.logoChange')}
-
{comingSoon}
@@ -135,7 +134,6 @@ const PlanItem: FC = ({
{t('billing.plansCommon.supportItems.priorityEmail')}
+ {t('billing.plansCommon.supportItems.logoChange')}
-
{comingSoon}
+ {t('billing.plansCommon.supportItems.SSOAuthentication')}