feature/IO-3103-Ant5-Notifications
This commit is contained in:
@@ -8,6 +8,7 @@ import { GenerateDocument } from "../../utils/RenderTemplate";
|
||||
import DateTimePicker from "../form-date-time-picker/form-date-time-picker.component";
|
||||
import LayoutFormRow from "../layout-form-row/layout-form-row.component";
|
||||
import dayjs from "../../utils/day";
|
||||
import { useNotification } from "../../contexts/Notifications/notificationContext.jsx";
|
||||
|
||||
const mapStateToProps = createStructuredSelector({
|
||||
currentUser: selectCurrentUser
|
||||
@@ -19,6 +20,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
|
||||
export function EmailTestComponent({ currentUser, setEmailOptions }) {
|
||||
const [form] = Form.useForm();
|
||||
const notification = useNotification();
|
||||
|
||||
const handleFinish = (values) => {
|
||||
GenerateDocument(
|
||||
@@ -40,7 +42,9 @@ export function EmailTestComponent({ currentUser, setEmailOptions }) {
|
||||
{
|
||||
to: values.to
|
||||
},
|
||||
values.email ? "e" : "p"
|
||||
values.email ? "e" : "p",
|
||||
null,
|
||||
notification
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user