Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/update sdk streamshop #1035

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions streamshop/sections/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ interface Props extends SectionHeaderProps {
style: Style;
}


/**
* @title StreamShop Carousel Video
*/
Expand Down Expand Up @@ -104,16 +105,8 @@ export default function Carousel({
: style.styleMobile;
return (
<>
<script
async
src="https://assets.streamshop.com.br/sdk-ads/liveshop-ads-video.min.js"
>
</script>
<script
async
src="https://assets.streamshop.com.br/sdk-ads/liveshop-ads-carousel.min.js"
>
</script>
<script async src="https://assets.streamshop.com.br/sdk-ads/liveshop-ads-video.min.js" ></script>
<script async src="https://assets.streamshop.com.br/sdk-ads/liveshop-ads-carousel.min.js" ></script>
<Section.Container
class={clx(
style?.containerWidth == "full" && "w-full !max-w-full",
Expand Down Expand Up @@ -147,6 +140,7 @@ export default function Carousel({
{/* @ts-ignore */}
</liveshop-ads-carousel>
</div>

</Section.Container>
</>
);
Expand Down
16 changes: 4 additions & 12 deletions streamshop/sections/Stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,8 @@ export default function Stories({
}: Props) {
return (
<>
<script
async
src="https://assets.streamshop.com.br/sdk-ads/liveshop-ads-video.min.js"
>
</script>
<script
async
src="https://assets.streamshop.com.br/sdk-ads/liveshop-ads-carousel.min.js"
>
</script>
<script async src="https://assets.streamshop.com.br/sdk-ads/liveshop-ads-video.min.js" ></script>
<script async src="https://assets.streamshop.com.br/sdk-ads/liveshop-ads-carousel.min.js" ></script>
<Section.Container>
<Section.Header title={title} cta={cta} />

Expand All @@ -58,11 +50,11 @@ export default function Stories({
gap="25px"
slugs-video={slugs.join(",")}
>
{/* @ts-ignore */}
{/* @ts-ignore */}
</liveshop-ads-carousel>
</div>
</Section.Container>
</>
</>
);
}

Expand Down
Loading