Refactord email popup screen to use Redx + implement all email redux/saga scaffolding.
This commit is contained in:
@@ -1,29 +1,28 @@
|
||||
import React from "react";
|
||||
import SendEmailButton from "../../components/send-email-button/send-email-button.container";
|
||||
import PartsOrderEmail from "../../emails/parts-order/parts-order.email";
|
||||
import { REPORT_QUERY_PARTS_ORDER_BY_PK } from "../../emails/parts-order/parts-order.query";
|
||||
|
||||
export default function ManageRootPageComponent() {
|
||||
//const client = useApolloClient();
|
||||
return (
|
||||
<div>
|
||||
<SendEmailButton
|
||||
MessageOptions={{
|
||||
from: {
|
||||
name: "Kavia"
|
||||
},
|
||||
to: "patrickwf@gmail.com",
|
||||
replyTo: "patrickwf@gmail.com"
|
||||
}}
|
||||
Template={PartsOrderEmail}
|
||||
QueryConfig={[
|
||||
REPORT_QUERY_PARTS_ORDER_BY_PK,
|
||||
{
|
||||
variables: { id: "ebe0fb6b-6ec4-4ae0-8fdc-49bdf1e37ff3" }
|
||||
}
|
||||
]}>
|
||||
Send an Email in new Window
|
||||
</SendEmailButton>
|
||||
{
|
||||
// <SendEmailButton
|
||||
// MessageOptions={{
|
||||
// from: {
|
||||
// name: "Kavia"
|
||||
// },
|
||||
// to: "patrickwf@gmail.com",
|
||||
// replyTo: "patrickwf@gmail.com"
|
||||
// }}
|
||||
// Template={PartsOrderEmail}
|
||||
// QueryConfig={[
|
||||
// REPORT_QUERY_PARTS_ORDER_BY_PK,
|
||||
// {
|
||||
// variables: { id: "ebe0fb6b-6ec4-4ae0-8fdc-49bdf1e37ff3" }
|
||||
// }
|
||||
// ]}>
|
||||
// Send an Email in new Window
|
||||
// </SendEmailButton>
|
||||
}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user