From 66ad5b285e2a73cb29b1cedc87613a35b8090b64 Mon Sep 17 00:00:00 2001 From: Jenni Nurmi Date: Mon, 2 Sep 2024 09:34:13 +0300 Subject: [PATCH 1/2] Make BlockId optional propType --- .../PageBuilder/BlockBuilder/BlockDefault/BlockDefault.js | 2 +- .../PageBuilder/BlockBuilder/BlockFooter/BlockFooter.js | 2 +- .../BlockBuilder/BlockSocialMediaLink/BlockSocialMediaLink.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/containers/PageBuilder/BlockBuilder/BlockDefault/BlockDefault.js b/src/containers/PageBuilder/BlockBuilder/BlockDefault/BlockDefault.js index 63cd84de5..8d265db5b 100644 --- a/src/containers/PageBuilder/BlockBuilder/BlockDefault/BlockDefault.js +++ b/src/containers/PageBuilder/BlockBuilder/BlockDefault/BlockDefault.js @@ -73,7 +73,7 @@ BlockDefault.defaultProps = { }; BlockDefault.propTypes = { - blockId: string.isRequired, + blockId: string, className: string, rootClassName: string, mediaClassName: string, diff --git a/src/containers/PageBuilder/BlockBuilder/BlockFooter/BlockFooter.js b/src/containers/PageBuilder/BlockBuilder/BlockFooter/BlockFooter.js index 4fa00cb3a..d5eff86e3 100644 --- a/src/containers/PageBuilder/BlockBuilder/BlockFooter/BlockFooter.js +++ b/src/containers/PageBuilder/BlockBuilder/BlockFooter/BlockFooter.js @@ -36,7 +36,7 @@ BlockFooter.defaultProps = { }; BlockFooter.propTypes = { - blockId: string.isRequired, + blockId: string, className: string, rootClassName: string, textClassName: string, diff --git a/src/containers/PageBuilder/BlockBuilder/BlockSocialMediaLink/BlockSocialMediaLink.js b/src/containers/PageBuilder/BlockBuilder/BlockSocialMediaLink/BlockSocialMediaLink.js index 14ce14dd0..bd7ad34ad 100644 --- a/src/containers/PageBuilder/BlockBuilder/BlockSocialMediaLink/BlockSocialMediaLink.js +++ b/src/containers/PageBuilder/BlockBuilder/BlockSocialMediaLink/BlockSocialMediaLink.js @@ -36,7 +36,7 @@ BlockSocialMediaLink.defaultProps = { }; BlockSocialMediaLink.propTypes = { - blockId: string.isRequired, + blockId: string, className: string, rootClassName: string, link: propTypeLink, From 53663b275ec6c944d4056ff173c654b9bb9d6a6d Mon Sep 17 00:00:00 2001 From: Jenni Nurmi Date: Mon, 2 Sep 2024 13:07:00 +0300 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f0c255908..2ede7331f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ way to update this template, but currently, we follow a pattern: ## Upcoming version 2024-XX-XX +- [change] Make the propType blockId optional for all Block types. [#444](https://github.com/sharetribe/web-template/pull/444) - [change] Updates to the configuration script. Marketplace name is now prompted in the mandatory settings. [#440](https://github.com/sharetribe/web-template/pull/440) - [change] Update one copy text. [#439](https://github.com/sharetribe/web-template/pull/439)