Added default emails to email tester.

This commit is contained in:
Patrick Fic
2021-01-25 13:11:43 -08:00
parent 8e3f807d1d
commit 8863a3b8ac

View File

@@ -1,4 +1,4 @@
import { Button, Form, Input, Switch } from "antd";
import { Button, Form, Input, Select, Switch } from "antd";
import React from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";
@@ -27,7 +27,9 @@ export function EmailTestComponent({ currentUser, setEmailOptions }) {
id: values.id,
},
},
{},
{
to: values.to,
},
values.email ? "e" : "p"
);
};
@@ -39,7 +41,25 @@ export function EmailTestComponent({ currentUser, setEmailOptions }) {
autoComplete={"off"}
layout="vertical"
form={form}
initialValues={{
to: [
"allan.carr@thinkimex.com",
"allanlcarr@outlook.com",
"allanlcarr@icloud.com",
],
}}
>
<Form.Item
name="to"
label="Recipients"
rules={[
{
type: "array",
},
]}
>
<Select mode="tags" tokenSeparators={[",", ";"]} />
</Form.Item>
<Form.Item
name="key"
label="Template Key"