From ed2871b5c2f3a43cf0046688263b43d989d7cc87 Mon Sep 17 00:00:00 2001 From: danidfra Date: Fri, 27 Sep 2024 21:18:13 -0300 Subject: [PATCH] Add new "feature" prop --- src/components/ui/column/column.tsx | 34 +++++++++++++++++------------ 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/src/components/ui/column/column.tsx b/src/components/ui/column/column.tsx index 3d7326f2a..347371a5a 100644 --- a/src/components/ui/column/column.tsx +++ b/src/components/ui/column/column.tsx @@ -61,11 +61,13 @@ export interface IColumn { action?: React.ReactNode; /** Column size, inherited from Card. */ size?: CardSizes; + /** Extra feature. */ + feature?: JSX.Element; } /** A backdrop for the main section of the UI. */ const Column: React.FC = React.forwardRef((props, ref: React.ForwardedRef): JSX.Element => { - const { backHref, children, label, transparent = false, withHeader = true, className, bodyClassName, action, size } = props; + const { backHref, children, label, transparent = false, withHeader = true, className, bodyClassName, action, size, feature } = props; const soapboxConfig = useSoapboxConfig(); const [isScrolled, setIsScrolled] = useState(false); @@ -97,20 +99,24 @@ const Column: React.FC = React.forwardRef((props, ref: React.ForwardedR {withHeader && ( - - )} +
+ + {feature} + +
+ )} {children}