From 582d36de0274dab9419c8a3f0306f3034b3cda9e Mon Sep 17 00:00:00 2001 From: Jerko Steiner Date: Sat, 6 Apr 2019 14:11:55 +0800 Subject: [PATCH] Add Link to Stories from Sites --- packages/client/src/crud/CRUDList.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 && (