Skip to content

Commit 479fec4

Browse files
chore: ListGuesser rowClick propTypes RA compatibility (#565)
1 parent a7827cb commit 479fec4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ListGuesser.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,11 @@ ListGuesser.propTypes = {
158158
filters: PropTypes.element,
159159
hasShow: PropTypes.bool,
160160
hasEdit: PropTypes.bool,
161-
rowClick: PropTypes.string,
161+
rowClick: PropTypes.oneOfType([
162+
PropTypes.string,
163+
PropTypes.func,
164+
PropTypes.oneOf([false]),
165+
]),
162166
};
163167
/* eslint-enable tree-shaking/no-side-effects-in-initialization */
164168

0 commit comments

Comments
 (0)