From 27c8c4b869bc0e26905e1b4555036ac65baaa1c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sven=20Gr=C3=BCbel?= Date: Wed, 21 Aug 2024 15:01:17 +0200 Subject: [PATCH] fix(react): removed warning for deprecated defaultProps (#248) * fix(react): Warning for deprecated defaultProps Fixes #180 * Create late-icons-sit.md --------- Co-authored-by: Nikolay Kost --- .changeset/late-icons-sit.md | 18 ++++++++++++++++++ packages/bbob-react/src/Component.ts | 7 ------- 2 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 .changeset/late-icons-sit.md diff --git a/.changeset/late-icons-sit.md b/.changeset/late-icons-sit.md new file mode 100644 index 00000000..abe9fe48 --- /dev/null +++ b/.changeset/late-icons-sit.md @@ -0,0 +1,18 @@ +--- +"@bbob/cli": patch +"@bbob/core": patch +"@bbob/html": patch +"@bbob/parser": patch +"@bbob/plugin-helper": patch +"@bbob/preset-html5": patch +"@bbob/preset-react": patch +"@bbob/preset-vue": patch +"@bbob/preset": patch +"@bbob/react": patch +"@bbob/types": patch +"@bbob/vue2": patch +"@bbob/vue3": patch +--- + +Removed `defaultProps` and +Warning for deprecated defaultProps diff --git a/packages/bbob-react/src/Component.ts b/packages/bbob-react/src/Component.ts index a0a2a059..0ad7ed2f 100644 --- a/packages/bbob-react/src/Component.ts +++ b/packages/bbob-react/src/Component.ts @@ -34,11 +34,4 @@ const Component = ({ content(children, plugins, options), ); -Component.defaultProps = { - container: 'span', - plugins: [], - options: {}, - componentProps: {}, -}; - export default Component;