@flozy/editor 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -128,15 +128,15 @@ const FormWorkflow = props => {
|
|
128
128
|
},
|
129
129
|
children: [/*#__PURE__*/_jsx(MenuItem, {
|
130
130
|
sx: classes.selectList,
|
131
|
-
value: "
|
131
|
+
value: "minutes",
|
132
132
|
children: "Minutes"
|
133
133
|
}), /*#__PURE__*/_jsx(MenuItem, {
|
134
134
|
sx: classes.selectList,
|
135
|
-
value: "
|
135
|
+
value: "hours",
|
136
136
|
children: "Hours"
|
137
137
|
}), /*#__PURE__*/_jsx(MenuItem, {
|
138
138
|
sx: classes.selectList,
|
139
|
-
value: "
|
139
|
+
value: "days",
|
140
140
|
children: "Day"
|
141
141
|
})]
|
142
142
|
})
|
@@ -28,8 +28,8 @@ const Workflow = props => {
|
|
28
28
|
const [workflowList, setWorkflowList] = useState([]);
|
29
29
|
const [formData, setFormData] = useState(false);
|
30
30
|
const [schedule, setSchedule] = useState("immediately");
|
31
|
-
const [scheduleEvery, setScheduleEvery] = useState("
|
32
|
-
const currentInstant = scheduleEvery === "
|
31
|
+
const [scheduleEvery, setScheduleEvery] = useState("minutes");
|
32
|
+
const currentInstant = scheduleEvery === "minutes" ? minutes : scheduleEvery === "hours" ? hours : scheduleEvery === "days" ? days : [];
|
33
33
|
const [scheduleOn, setScheduleOn] = useState(currentInstant[0]);
|
34
34
|
const [subject, setSubject] = useState("Welcome to Flozy!");
|
35
35
|
const [bodyData, setBodyData] = useState("Hey %field_name% \n\nThanks for attending the event called %Event Name% at %Event Time% on %Event Time%.");
|