diff --git a/.changeset/lucky-zebras-yell.md b/.changeset/lucky-zebras-yell.md new file mode 100644 index 00000000..150b78b8 --- /dev/null +++ b/.changeset/lucky-zebras-yell.md @@ -0,0 +1,5 @@ +--- +"@explorer-1/vue": patch +--- + +Adding logic to show/hide share links on content pages diff --git a/packages/vue/src/templates/PageContent/PageContent.stories.js b/packages/vue/src/templates/PageContent/PageContent.stories.js index 1c6c5b71..39ebf3ed 100644 --- a/packages/vue/src/templates/PageContent/PageContent.stories.js +++ b/packages/vue/src/templates/PageContent/PageContent.stories.js @@ -28,6 +28,7 @@ export const ContentPageData = { breadcrumb: NavSecondaryData.breadcrumb, title: 'Make a Paper Mars Helicopter', displayLabel: 'Classroom Activity', + showShareLinks: true, heroPosition: 'inline', heroImage: HeroMediaData.image, heroImageInline: HeroMediaData.imageInline, @@ -87,3 +88,11 @@ export const BaseStory = { data: ContentPageData } } +export const NoShareLinks = { + args: { + data: { + ...ContentPageData, + showShareLinks: false + } + } +} diff --git a/packages/vue/src/templates/PageContent/PageContent.vue b/packages/vue/src/templates/PageContent/PageContent.vue index 9d0875df..91fa0b76 100644 --- a/packages/vue/src/templates/PageContent/PageContent.vue +++ b/packages/vue/src/templates/PageContent/PageContent.vue @@ -144,7 +144,7 @@ export default defineComponent({ class="lg:mb-0 relative mb-8" >