From cfd959f16abe14b801af2c3f923524409d6d8e42 Mon Sep 17 00:00:00 2001 From: Igor Shadurin Date: Fri, 17 Nov 2023 17:54:51 +0300 Subject: [PATCH] feat: added Klaviyo form initialization in differentPoints component --- src/components/differentPoints/differentPoints.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/differentPoints/differentPoints.tsx b/src/components/differentPoints/differentPoints.tsx index b39b16d..0511c82 100644 --- a/src/components/differentPoints/differentPoints.tsx +++ b/src/components/differentPoints/differentPoints.tsx @@ -1,4 +1,4 @@ -import React from "react"; +import React, { useEffect } from 'react' import { useTheme } from "../../store/themeContext/themeContext"; import useStyles from "./differentPointsStyles"; @@ -9,6 +9,11 @@ function DifferentPoints(props: Props) { const classes = useStyles({ ...props, ...theme }); + useEffect(() => { + window._klOnsite = window._klOnsite || []; + window._klOnsite.push(['openForm', 'TUV2ne']); + }, []) + return (