Add confirmation page field
[MAILPOET-2678]
This commit is contained in:
committed by
Veljko V
parent
7755dd6d81
commit
15e33d2d62
@@ -0,0 +1,29 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { t } from 'common/functions';
|
||||||
|
import { Label, Inputs, PagesSelect } from 'settings/components';
|
||||||
|
import { useSetting } from 'settings/store/hooks';
|
||||||
|
|
||||||
|
export default function ConfirmationPage() {
|
||||||
|
const [enabled] = useSetting('signup_confirmation', 'enabled');
|
||||||
|
const [page, setPage] = useSetting('subscription', 'pages', 'confirmation');
|
||||||
|
|
||||||
|
if (!enabled) return null;
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Label
|
||||||
|
title={t('confirmationPage')}
|
||||||
|
description={t('confirmationPageDescription')}
|
||||||
|
htmlFor="subscription-pages-confirmation"
|
||||||
|
/>
|
||||||
|
<Inputs>
|
||||||
|
<PagesSelect
|
||||||
|
value={page}
|
||||||
|
preview="confirm"
|
||||||
|
setValue={setPage}
|
||||||
|
id="subscription-pages-confirmation"
|
||||||
|
linkAutomationId="preview_page_link"
|
||||||
|
/>
|
||||||
|
</Inputs>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|||||||
import EnableSignupConfirmation from './enable_signup_confirmation';
|
import EnableSignupConfirmation from './enable_signup_confirmation';
|
||||||
import EmailSubject from './email_subject';
|
import EmailSubject from './email_subject';
|
||||||
import EmailContent from './email_content';
|
import EmailContent from './email_content';
|
||||||
|
import ConfirmationPage from './confirmation_page';
|
||||||
|
|
||||||
export default function SignupConfirmation() {
|
export default function SignupConfirmation() {
|
||||||
return (
|
return (
|
||||||
@@ -9,6 +10,7 @@ export default function SignupConfirmation() {
|
|||||||
<EnableSignupConfirmation />
|
<EnableSignupConfirmation />
|
||||||
<EmailSubject />
|
<EmailSubject />
|
||||||
<EmailContent />
|
<EmailContent />
|
||||||
|
<ConfirmationPage />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user