diff --git a/frontend/src/components/ShuffleCodeEditor.jsx b/frontend/src/components/ShuffleCodeEditor.jsx
index f4a207d6..4faa1790 100644
--- a/frontend/src/components/ShuffleCodeEditor.jsx
+++ b/frontend/src/components/ShuffleCodeEditor.jsx
@@ -7,10 +7,12 @@ import 'codemirror/keymap/sublime';
import 'codemirror/theme/gruvbox-dark.css';
const Textfield = (props) => {
-
+ const {fieldCount, setFieldCount} = props
+ // const {editorData} = props
+ const {changeActionParameterCodeMirror} = props
const {expansionModalOpen, setExpansionModalOpen} = props
const {codedata, setcodedata} = props
- const [localcodedata, setlocalcodedata] = React.useState("print('Hello')");
+ const [localcodedata, setlocalcodedata] = React.useState(codedata === undefined || codedata === null || codedata.length === 0 ? "" : codedata);
// const {codelang, setcodelang} = props
const theme = useTheme();
@@ -32,30 +34,64 @@ const Textfield = (props) => {
-
+
+ Code Editor
+
+
+ Python
+
+
+
+
+
-
Code Editor
{
// setcodedata(value.getValue())
@@ -68,21 +104,55 @@ const Textfield = (props) => {
// mode: {codelang},
}}
/>
-
+
+
+
+
+
+
+
)
}
diff --git a/frontend/src/views/AngularWorkflow.jsx b/frontend/src/views/AngularWorkflow.jsx
index 8c4558db..a6c81a96 100644
--- a/frontend/src/views/AngularWorkflow.jsx
+++ b/frontend/src/views/AngularWorkflow.jsx
@@ -1,6 +1,7 @@
import React, {useRef, useState, useEffect, useLayoutEffect} from 'react';
import { useInterval } from 'react-powerhooks';
import { useTheme } from '@material-ui/core/styles';
+import ShuffleCodeEditor from "../components/ShuffleCodeEditor.jsx";
import { v4 as uuidv4 } from 'uuid';
import {Link} from 'react-router-dom';
@@ -169,6 +170,9 @@ const AngularWorkflow = (props) => {
selected: "",
})
+ const [codedata, setcodedata] = React.useState("print('Hello')");
+ const [expansionModalOpen, setExpansionModalOpen] = React.useState(false);
+
const [history, setHistory] = React.useState([])
const [historyIndex, setHistoryIndex] = React.useState(history.length)
@@ -7828,6 +7832,12 @@ const AngularWorkflow = (props) => {
globalUrl={globalUrl}
setSelectedActionEnvironment={setSelectedActionEnvironment}
requiresAuthentication={requiresAuthentication}
+
+ // onClick={() => {
+ // // console.log("Clicked field: ", clickedFieldId)
+ // setExpansionModalOpen(true)
+ // }
+ // }
/>