diff --git a/packages/client/src/crud/CRUDList.tsx b/packages/client/src/crud/CRUDList.tsx index 113b8a9..fa2473d 100644 --- a/packages/client/src/crud/CRUDList.tsx +++ b/packages/client/src/crud/CRUDList.tsx @@ -12,10 +12,16 @@ export interface ICRUDListProps { onRemove?: (t: T) => void title: string Info?: React.ComponentType> + RowButtons?: React.ComponentType> +} + +export interface ICRUDRowButtons { + item: T } export interface ICRUDItemRowProps { Info?: React.ComponentType> + RowButtons?: React.ComponentType> nameKey: keyof T editLink?: string item: T @@ -54,6 +60,10 @@ export class CRUDItemRow extends React.PureComponent> { }
+ {!!this.props.RowButtons && ( + + )} +   {!!editLink && (