-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathFields.jsx
More file actions
42 lines (39 loc) · 837 Bytes
/
Fields.jsx
File metadata and controls
42 lines (39 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// source
import StagePayload from "../Workflow/Payload";
const { __ } = wp.i18n;
const DIFF_MOCK = {
enter: new Set(),
exit: new Set(),
mutated: new Set(),
missing: new Set(),
};
export default function FormFields({ fields }) {
return (
<div
style={{
display: "flex",
flexDirection: "column",
height: "340px",
}}
>
<div style={{ borderBottom: "1px solid" }}>
<h2 style={{ marginTop: "5px" }}>{__("Submission", "forms-bridge")}</h2>
</div>
<div
style={{
flex: 1,
height: "100%",
overflow: "hidden auto",
padding: "5px",
}}
>
<StagePayload
fields={fields}
mappers={[]}
showDiff={false}
diff={DIFF_MOCK}
/>
</div>
</div>
);
}