Skip to content

Commit

Permalink
fixing build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
stephiescastle committed Sep 10, 2024
1 parent a5896c9 commit de599e2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 24 deletions.
21 changes: 1 addition & 20 deletions packages/vue/src/components/HeroInlineMedia/HeroInlineMedia.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { computed, reactive } from 'vue'
import { reactive } from 'vue'
import BaseImagePlaceholder from './../BaseImagePlaceholder/BaseImagePlaceholder.vue'
import BlockIframeEmbed from './../BlockIframeEmbed/BlockIframeEmbed.vue'
import BlockImageComparison from './../BlockImageComparison/BlockImageComparison.vue'
Expand All @@ -19,25 +19,6 @@ const props = withDefaults(defineProps<HeroInlineMediaProps>(), {
})
const { heroBlocks, constrain } = reactive(props)
// const heroInline = computed(() => {
// // heroes with interactive elements have special handling
// if (heroBlocks?.length) {
// // excludes VideoBlock as this will autoplay
// if (heroBlocks[0].blockType === 'VideoBlock') {
// return false
// } else if (
// heroBlocks[0].blockType === 'HeroImageBlock' ||
// heroBlocks[0].blockType === 'CarouselBlock' ||
// heroBlocks[0].blockType === 'IframeEmbedBlock' ||
// heroBlocks[0].blockType === 'VideoEmbedBlock' ||
// heroBlocks[0].blockType === 'ImageComparisonBlock'
// ) {
// return true
// }
// }
// return false
// })
</script>
<template>
<div v-if="heroBlocks?.length">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script setup lang="ts">
import { computed, reactive } from 'vue'
import { camelCase } from 'lodash'
import { reactive } from 'vue'
import type { ImageObject, StreamfieldBlockData } from './../../../interfaces'
import BlockHeading, {
type BlockHeadingObject
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script setup lang="ts">
import { computed, reactive } from 'vue'
import { camelCase } from 'lodash'
import { reactive } from 'vue'
import type { ImageObject, StreamfieldBlockData } from './../../../interfaces'
import BlockHeading, {
type BlockHeadingObject
Expand Down

0 comments on commit de599e2

Please sign in to comment.