Skip to content

Commit 155a710

Browse files
chore: work around type error with <SelectableBox>
1 parent 591a02e commit 155a710

File tree

1 file changed

+5
-2
lines changed
  • src/editors/sharedComponents/SelectableBox

1 file changed

+5
-2
lines changed

src/editors/sharedComponents/SelectableBox/index.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ const INPUT_TYPES = [
1111
'checkbox',
1212
];
1313

14-
const SelectableBox = React.forwardRef(({
14+
// The 'type: any' below is to avoid some errors while this file lacks proper
15+
// types. But we can probably soon just delete this file and use the upstream
16+
// Paragon.
17+
const SelectableBox = /** @type {any} */ (React.forwardRef(({
1518
type,
1619
value,
1720
checked,
@@ -74,7 +77,7 @@ const SelectableBox = React.forwardRef(({
7477
{children}
7578
</div>
7679
);
77-
});
80+
}));
7881

7982
SelectableBox.propTypes = {
8083
/** Content of the `SelectableBox`. */

0 commit comments

Comments
 (0)