From 89fb6eb648e507a4589a5c14c0b22b96bbb7a59d Mon Sep 17 00:00:00 2001 From: Joel Date: Tue, 15 Oct 2024 21:45:30 +0800 Subject: [PATCH] chore: set hideCornerMark to optional --- web/app/components/plugins/card/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/app/components/plugins/card/index.tsx b/web/app/components/plugins/card/index.tsx index 823d9dd025..75ff9236a9 100644 --- a/web/app/components/plugins/card/index.tsx +++ b/web/app/components/plugins/card/index.tsx @@ -16,6 +16,7 @@ type Props = { locale: Locale // The component is used in both client and server side, so we can't get the locale from both side(getLocaleOnServer and useContext) titleLeft?: React.ReactNode installed?: boolean + hideCornerMark?: boolean descriptionLineRows?: number footer?: React.ReactNode serverLocale?: Locale @@ -28,6 +29,7 @@ const Card = ({ payload, titleLeft, installed, + hideCornerMark, descriptionLineRows = 2, footer, locale, @@ -45,7 +47,7 @@ const Card = ({ return (
- {!isLoading && } + {!hideCornerMark && !isLoading && } {/* Header */}
{isLoading