From 1f786665fc9b0035d8438369aba1c749db3f2f28 Mon Sep 17 00:00:00 2001 From: Shivam Gupta Date: Sun, 5 Jan 2025 16:12:26 +0000 Subject: [PATCH 1/2] named import Signed-off-by: Shivam Gupta --- src/reusecore/Blockquote/Blockquote-alt-style/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/reusecore/Blockquote/Blockquote-alt-style/index.js b/src/reusecore/Blockquote/Blockquote-alt-style/index.js index 2e3f47a0a2b7..9ea19c33b208 100644 --- a/src/reusecore/Blockquote/Blockquote-alt-style/index.js +++ b/src/reusecore/Blockquote/Blockquote-alt-style/index.js @@ -2,7 +2,8 @@ import React from "react"; import PropTypes from "prop-types"; import BlockquoteStyle from "./blockquote.style"; -const Blockquote = ({ className, ...props }) => { +export { BlockquoteAlt }; +const BlockquoteAlt = ({ className, ...props }) => { const AllClasses = ["blockquote"]; if (className) { AllClasses.push(className); @@ -24,11 +25,11 @@ const Blockquote = ({ className, ...props }) => { ); }; -Blockquote.propTypes = { +BlockquoteAlt.propTypes = { quote: PropTypes.string, person: PropTypes.string, title: PropTypes.string, className: PropTypes.string, }; -export default Blockquote; +export default BlockquoteAlt; From 2fe6c48eb1cf9e9fccc4d007067ebb4227000d17 Mon Sep 17 00:00:00 2001 From: Shivam Gupta Date: Sun, 5 Jan 2025 16:13:35 +0000 Subject: [PATCH 2/2] reconfigure the import Signed-off-by: Shivam Gupta --- src/reusecore/Blockquote/Blockquote-alt-style/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reusecore/Blockquote/Blockquote-alt-style/index.js b/src/reusecore/Blockquote/Blockquote-alt-style/index.js index 9ea19c33b208..f3a5ef02c349 100644 --- a/src/reusecore/Blockquote/Blockquote-alt-style/index.js +++ b/src/reusecore/Blockquote/Blockquote-alt-style/index.js @@ -2,7 +2,6 @@ import React from "react"; import PropTypes from "prop-types"; import BlockquoteStyle from "./blockquote.style"; -export { BlockquoteAlt }; const BlockquoteAlt = ({ className, ...props }) => { const AllClasses = ["blockquote"]; if (className) { @@ -33,3 +32,4 @@ BlockquoteAlt.propTypes = { }; export default BlockquoteAlt; +export { BlockquoteAlt };