From 155a710aa87132a46433d486ca6d99b061215f4f Mon Sep 17 00:00:00 2001 From: Braden MacDonald Date: Sat, 17 Aug 2024 16:41:12 -0700 Subject: [PATCH] chore: work around type error with --- src/editors/sharedComponents/SelectableBox/index.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/editors/sharedComponents/SelectableBox/index.jsx b/src/editors/sharedComponents/SelectableBox/index.jsx index 40da72439..372bb27c5 100644 --- a/src/editors/sharedComponents/SelectableBox/index.jsx +++ b/src/editors/sharedComponents/SelectableBox/index.jsx @@ -11,7 +11,10 @@ const INPUT_TYPES = [ 'checkbox', ]; -const SelectableBox = React.forwardRef(({ +// The 'type: any' below is to avoid some errors while this file lacks proper +// types. But we can probably soon just delete this file and use the upstream +// Paragon. +const SelectableBox = /** @type {any} */ (React.forwardRef(({ type, value, checked, @@ -74,7 +77,7 @@ const SelectableBox = React.forwardRef(({ {children} ); -}); +})); SelectableBox.propTypes = { /** Content of the `SelectableBox`. */