PluginProbe
HubSpot All-In-One Marketing – Forms, Popups, Live Chat / 11.3.75
HubSpot All-In-One Marketing – Forms, Popups, Live Chat v11.3.75
11.3.75 11.3.73 11.3.71 11.3.70 11.3.69 11.3.64 11.3.65 11.3.62 11.3.61 11.3.56 11.3.58 11.0.31 11.0.52 11.0.54 11.0.56 11.0.58 11.0.7 11.1.10 11.1.11 11.1.13 11.1.14 11.1.15 11.1.2 11.1.20 11.1.21 All 73 releases
← All changes | scripts/shared/Form/FormEdit.tsx +4 -15 11.3.6411.3.75 View file →
@@ -1,5 +1,5 @@
1 -import React, { Fragment, useEffect } from 'react';
1 +import { Fragment, useEffect } from 'react';
2 2 import { portalId } from '../../constants/leadinConfig';
3 3 import UISpacer from '../UIComponents/UISpacer';
4 4 import PreviewForm from './PreviewForm';
5 5 import FormSelect from './FormSelect';
@@ -5,14 +5,13 @@
5 5 import FormSelect from './FormSelect';
6 6 import { IFormBlockProps } from '../../gutenberg/FormBlock/registerFormBlock';
7 7 import {
8 8 usePostBackgroundMessage,
9 - BackgroudAppContext,
10 9 useBackgroundAppContext,
11 10 } from '../../iframe/useBackgroundApp';
12 11 import { ProxyMessages } from '../../iframe/integratedMessages';
13 12 import LoadingBlock from '../Common/LoadingBlock';
14 -import { useGetEmbedder } from '../../utils/useGetEmbedder';
13 +import EmbedderContainer from '../Common/EmbedderContainer';
15 14
16 15 interface IFormEditProps extends IFormBlockProps {
17 16 preview: boolean;
18 17 origin: 'gutenberg' | 'elementor';
@@ -85,20 +84,10 @@
85 84 );
86 85 }
87 86
88 87 export default function FormEditContainer(props: IFormEditProps) {
89 - const { embedder, errorElement, isLoading } = useGetEmbedder();
90 -
91 - if (errorElement) {
92 - return errorElement;
93 - }
94 -
95 - if (isLoading) {
96 - return <LoadingBlock />;
97 - }
98 -
99 88 return (
100 - <BackgroudAppContext.Provider value={embedder}>
89 + <EmbedderContainer>
101 90 <FormEdit {...props} />
102 - </BackgroudAppContext.Provider>
91 + </EmbedderContainer>
103 92 );
104 93 }