From f7034b29930bde921a8a154cedae1db9cc31f6f2 Mon Sep 17 00:00:00 2001 From: danidfra Date: Sat, 28 Sep 2024 15:10:33 -0300 Subject: [PATCH] Update: Replace 'feature' with 'action' and remove 'feature' --- src/components/ui/column/column.tsx | 36 ++++++++++++-------------- src/features/public-timeline/index.tsx | 2 +- 2 files changed, 17 insertions(+), 21 deletions(-) diff --git a/src/components/ui/column/column.tsx b/src/components/ui/column/column.tsx index 4e4dcabd3..e94b1a3f5 100644 --- a/src/components/ui/column/column.tsx +++ b/src/components/ui/column/column.tsx @@ -59,15 +59,15 @@ export interface IColumn { children?: React.ReactNode; /** Action for the ColumnHeader, displayed at the end. */ action?: React.ReactNode; + /** Determines if the action for the ColumnHeader is displayed on the right. */ + actionRightPosition?: boolean; /** Column size, inherited from Card. */ size?: CardSizes; - /** Extra feature. */ - feature?: JSX.Element; } /** A backdrop for the main section of the UI. */ const Column = React.forwardRef((props, ref): JSX.Element => { - const { backHref, children, label, transparent = false, withHeader = true, className, bodyClassName, action, size, feature } = props; + const { backHref, children, label, transparent = false, withHeader = true, className, bodyClassName, action, actionRightPosition, size } = props; const soapboxConfig = useSoapboxConfig(); const [isScrolled, setIsScrolled] = useState(false); @@ -99,23 +99,19 @@ const Column = React.forwardRef((props, ref): JSX.Eleme {withHeader && ( -
- - - {feature} - -
+ )} {children} diff --git a/src/features/public-timeline/index.tsx b/src/features/public-timeline/index.tsx index 1012c003c..0da913c13 100644 --- a/src/features/public-timeline/index.tsx +++ b/src/features/public-timeline/index.tsx @@ -64,7 +64,7 @@ const PublicTimeline = () => { }, []); return ( - }> + } actionRightPosition> {showExplanationBox && (