From 479fec447215e8fb13a8650d0b1fcd8f6a09538b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Suwi=C5=84ski?= Date: Mon, 24 Jun 2024 16:23:49 +0200 Subject: [PATCH] chore: ListGuesser rowClick propTypes RA compatibility (#565) --- src/ListGuesser.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ListGuesser.tsx b/src/ListGuesser.tsx index 9d244644..d99311de 100644 --- a/src/ListGuesser.tsx +++ b/src/ListGuesser.tsx @@ -158,7 +158,11 @@ ListGuesser.propTypes = { filters: PropTypes.element, hasShow: PropTypes.bool, hasEdit: PropTypes.bool, - rowClick: PropTypes.string, + rowClick: PropTypes.oneOfType([ + PropTypes.string, + PropTypes.func, + PropTypes.oneOf([false]), + ]), }; /* eslint-enable tree-shaking/no-side-effects-in-initialization */