From 14285ae82dbc1e5dc3144058f7e0b169751f9a55 Mon Sep 17 00:00:00 2001 From: Brandon Van Dyck Date: Fri, 16 Feb 2024 15:26:43 -0500 Subject: [PATCH] Package registry in BlogPosts / include styled-jsx in boilerplate --- .../components/{ => modules/BlogPosts-V0}/StyledJSXIsland.jsx | 0 .../{ => modules/BlogPosts-V0}/StyledJSXRegistry.jsx | 0 .../src/components/modules/BlogPosts-V0/index.jsx | 2 +- react-module-boilerplate/react-modules/src/package.json | 3 ++- 4 files changed, 3 insertions(+), 2 deletions(-) rename default-react-modules/src/components/{ => modules/BlogPosts-V0}/StyledJSXIsland.jsx (100%) rename default-react-modules/src/components/{ => modules/BlogPosts-V0}/StyledJSXRegistry.jsx (100%) diff --git a/default-react-modules/src/components/StyledJSXIsland.jsx b/default-react-modules/src/components/modules/BlogPosts-V0/StyledJSXIsland.jsx similarity index 100% rename from default-react-modules/src/components/StyledJSXIsland.jsx rename to default-react-modules/src/components/modules/BlogPosts-V0/StyledJSXIsland.jsx diff --git a/default-react-modules/src/components/StyledJSXRegistry.jsx b/default-react-modules/src/components/modules/BlogPosts-V0/StyledJSXRegistry.jsx similarity index 100% rename from default-react-modules/src/components/StyledJSXRegistry.jsx rename to default-react-modules/src/components/modules/BlogPosts-V0/StyledJSXRegistry.jsx diff --git a/default-react-modules/src/components/modules/BlogPosts-V0/index.jsx b/default-react-modules/src/components/modules/BlogPosts-V0/index.jsx index c01d002..169dfbf 100644 --- a/default-react-modules/src/components/modules/BlogPosts-V0/index.jsx +++ b/default-react-modules/src/components/modules/BlogPosts-V0/index.jsx @@ -1,5 +1,5 @@ import blogIcon from './assets/blog.svg'; -import StyledJSXRegistry from '../../StyledJSXRegistry.jsx'; +import StyledJSXRegistry from './StyledJSXRegistry.jsx'; import styles from './styles.module.css'; function stripTags(stringWithTags) { diff --git a/react-module-boilerplate/react-modules/src/package.json b/react-module-boilerplate/react-modules/src/package.json index 909f5b6..591f2a5 100644 --- a/react-module-boilerplate/react-modules/src/package.json +++ b/react-module-boilerplate/react-modules/src/package.json @@ -17,7 +17,8 @@ "dependencies": { "@hubspot/cms-components": "^0.14", "react": "^18.2.0", - "styled-components": "^6" + "styled-components": "^6", + "styled-jsx": "^5" }, "devDependencies": { "@hubspot/cms-dev-server": "^0.14"