From 33a045df54118193902399ee5d14a5ebb5cad86c Mon Sep 17 00:00:00 2001 From: viown <48097677+viown@users.noreply.github.com> Date: Wed, 4 Jun 2025 18:15:55 +0300 Subject: [PATCH] Add version sub-secondary text --- src/apps/dashboard/components/BaseCard.tsx | 23 ++++++++++++++----- .../plugins/components/PluginCard.tsx | 1 + 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/apps/dashboard/components/BaseCard.tsx b/src/apps/dashboard/components/BaseCard.tsx index 1ba6ce5ec..2dcc77f95 100644 --- a/src/apps/dashboard/components/BaseCard.tsx +++ b/src/apps/dashboard/components/BaseCard.tsx @@ -8,9 +8,11 @@ import Typography from '@mui/material/Typography'; import MoreVertIcon from '@mui/icons-material/MoreVert'; import { getDefaultBackgroundClass } from 'components/cardbuilder/cardBuilderUtils'; import CardActionArea from '@mui/material/CardActionArea'; +import Stack from '@mui/material/Stack'; interface IProps { title?: string; + secondaryTitle?: string; text?: string; image?: string | null; icon?: React.ReactNode; @@ -20,7 +22,7 @@ interface IProps { onActionClick?: () => void; }; -const BaseCard = ({ title, text, image, icon, onClick, action, actionRef, onActionClick }: IProps) => { +const BaseCard = ({ title, secondaryTitle, text, image, icon, onClick, action, actionRef, onActionClick }: IProps) => { return ( {title}} + title={ + + + {title} + + {secondaryTitle && ( + {secondaryTitle} + )} + + } subheader={text} action={ action ? ( diff --git a/src/apps/dashboard/features/plugins/components/PluginCard.tsx b/src/apps/dashboard/features/plugins/components/PluginCard.tsx index 8ad6885f1..299e6e795 100644 --- a/src/apps/dashboard/features/plugins/components/PluginCard.tsx +++ b/src/apps/dashboard/features/plugins/components/PluginCard.tsx @@ -104,6 +104,7 @@ const PluginCard = ({ plugin, configurationPage }: IProps) => { <> }