Skip to content

Commit

Permalink
fix: merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaHungDinh committed Aug 23, 2023
1 parent f118deb commit 226a76a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {useState} from 'react';
import {useFormState} from '@givewp/form-builder/stores/form-state';
import {Button, TextControl} from '@wordpress/components';
import {__} from '@wordpress/i18n';
import {getStorageData} from '@givewp/form-builder/common/getWindowData';
import {getFormBuilderWindowData} from '@givewp/form-builder/common/getWindowData';

export default ({emailType, defaultEmailAddress}) => {
const [emailAddress, setEmailAddress] = useState<string>(defaultEmailAddress);
Expand All @@ -11,7 +11,7 @@ export default ({emailType, defaultEmailAddress}) => {
settings: {emailTemplateOptions, emailTemplate, emailLogo, emailFromName, emailFromEmail},
} = useFormState();

const {formId, emailPreviewURL} = getStorageData();
const {formId, emailPreviewURL, nonce} = getFormBuilderWindowData();

const sendTestEmail = () => {
// @ts-ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {useState} from 'react';
import TabPanel from '@givewp/form-builder/components/sidebar/TabPanel';
import EmailTemplateSettings from './settings';
import CopyToClipboardButton from './components/copy-to-clipboard-button';

import {getFormBuilderWindowData} from '@givewp/form-builder/common/getWindowData';
import SendPreviewEmail from './components/send-preview-email';
import EmailPreviewContent from './components/email-preview-content';
Expand Down

0 comments on commit 226a76a

Please sign in to comment.