From e1a3c245e6797a67e11c487af99e13b4411a4b13 Mon Sep 17 00:00:00 2001 From: Cristian Necula Date: Tue, 28 Nov 2023 14:30:14 +0200 Subject: [PATCH] feat: export checkboxes as parts So we can hide them if required. --- lib/use-list.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/use-list.js b/lib/use-list.js index 96dbed2d..cc9248f0 100644 --- a/lib/use-list.js +++ b/lib/use-list.js @@ -29,6 +29,7 @@ const _getGroupRowClasses = (folded) => (value) => _onItemChange(host, column, item, value), - [] + [], ); return { @@ -201,7 +202,7 @@ export const useList = ({ dataIsValid, groupOnColumn, onItemChange, - ] + ], ), renderGroup: useMemo( () => @@ -210,7 +211,7 @@ export const useList = ({ dataIsValid, groupOnColumn, }), - [onCheckboxChange, dataIsValid, groupOnColumn] + [onCheckboxChange, dataIsValid, groupOnColumn], ), }; };