RO into IO merge as of 02/05/2024.

This commit is contained in:
Patrick Fic
2024-02-12 12:22:05 -08:00
211 changed files with 31134 additions and 25729 deletions

View File

@@ -1,13 +1,20 @@
import InstanceRenderManager from "../../utils/instanceRenderMgr";
import EmailActionTypes from "./email.types";
const INITIAL_STATE = {
emailConfig: {
messageOptions: {
from: {name: "ShopName", address: "noreply@bodyshop.app"},
from: {
name: "ShopName",
address: InstanceRenderManager({
imex: "noreply@iemx.online",
rome: "noreply@romeonline.io",
}),
},
to: null,
replyTo: null,
},
template: {name: null, variables: {}},
template: { name: null, variables: {} },
},
open: false,
@@ -24,7 +31,7 @@ const emailReducer = (state = INITIAL_STATE, action) => {
case EmailActionTypes.SET_EMAIL_OPTIONS:
return {
...state,
emailConfig: {...action.payload},
emailConfig: { ...action.payload },
open: true,
};
default: