diff --git a/src/List.tsx b/src/List.tsx index d3a370f..a5116ee 100644 --- a/src/List.tsx +++ b/src/List.tsx @@ -161,11 +161,20 @@ export const List = React.forwardRef( (data: IMessage, withDate?: boolean) => { if (rowRendererProp) { return ( - - - {rowRendererProp(data)} - - + + {withDate && ( + + )} + + + + {rowRendererProp(data)} + + + ); }