diff --git a/desktop/flipper-plugin/src/ui/MasterDetailWithPowerSearch.tsx b/desktop/flipper-plugin/src/ui/MasterDetailWithPowerSearch.tsx index c2c9cce3f..d6b873431 100644 --- a/desktop/flipper-plugin/src/ui/MasterDetailWithPowerSearch.tsx +++ b/desktop/flipper-plugin/src/ui/MasterDetailWithPowerSearch.tsx @@ -85,6 +85,7 @@ export function MasterDetailWithPowerSearch({ sidebarSize, onSelect, actionsTop, + extraActions, enableMenuEntries, enableClear, isPaused, @@ -232,6 +233,7 @@ export function MasterDetailWithPowerSearch({ } actionsTop={actionsTop} + extraActions={extraActions} /> ); diff --git a/desktop/flipper-plugin/src/ui/data-table/DataTableWithPowerSearch.tsx b/desktop/flipper-plugin/src/ui/data-table/DataTableWithPowerSearch.tsx index 8788b3cce..1a9943a9f 100644 --- a/desktop/flipper-plugin/src/ui/data-table/DataTableWithPowerSearch.tsx +++ b/desktop/flipper-plugin/src/ui/data-table/DataTableWithPowerSearch.tsx @@ -87,6 +87,8 @@ type DataTableBaseProps = { scrollable?: boolean; actionsRight?: React.ReactElement; actionsTop?: React.ReactElement; + /** @deprecated **/ + extraActions?: React.ReactElement; onSelect?(record: T | undefined, records: T[]): void; onRowStyle?(record: T): CSSProperties | undefined; tableManagerRef?: RefObject | undefined>; // Actually we want a MutableRefObject, but that is not what React.createRef() returns, and we don't want to put the burden on the plugin dev to cast it... @@ -663,6 +665,7 @@ export function DataTable( )} {props.actionsRight} + {props.extraActions} )}