From 598395b4c0ac8a90d64defeb20b4e1c59c023da4 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], ), }; };