+
Endpoints
- {(NODE_EXTRA_KEYS[currentNode.node_type]?.indexOf('p2p_endpoint') > -1) && (
+
+ {nodesKeys[currentNode.node_type]?.indexOf('p2p_endpoint') > -1 && (
handleOnChange('p2p_endpoint', e.target.value)}
variant="outlined"
@@ -37,7 +36,7 @@ const EndpointsForm = ({ currentNode, handleOnChange }) => {
className={classes.formFieldForm}
/>
)}
- {(NODE_EXTRA_KEYS[currentNode.node_type]?.indexOf('api_endpoint') > -1) && (
+ {nodesKeys[currentNode.node_type]?.indexOf('api_endpoint') > -1 && (
handleOnChange('api_endpoint', e.target.value)}
variant="outlined"
@@ -50,7 +49,7 @@ const EndpointsForm = ({ currentNode, handleOnChange }) => {
className={classes.formFieldForm}
/>
)}
- {((NODE_EXTRA_KEYS[currentNode.node_type]?.indexOf('ssl_endpoint') > -1) &&
+ {nodesKeys[currentNode.node_type]?.indexOf('ssl_endpoint') > -1 && (
handleOnChange('ssl_endpoint', e.target.value)}
variant="outlined"
@@ -63,13 +62,14 @@ const EndpointsForm = ({ currentNode, handleOnChange }) => {
className={classes.formFieldForm}
/>
)}
- >
+
)
}
EndpointsForm.propTypes = {
currentNode: PropTypes.object,
- handleOnChange: PropTypes.func,
+ nodesKeys: PropTypes.object,
+ handleOnChange: PropTypes.func
}
-export default EndpointsForm
\ No newline at end of file
+export default EndpointsForm
diff --git a/src/lib/BPJsonGenerator/ErrorModal.js b/src/lib/BPJsonGenerator/ErrorModal.js
index 83215b1..ed9049a 100644
--- a/src/lib/BPJsonGenerator/ErrorModal.js
+++ b/src/lib/BPJsonGenerator/ErrorModal.js
@@ -2,6 +2,8 @@ import React from 'react'
import { makeStyles } from '@mui/styles'
import Typography from '@mui/material/Typography'
import Grid from '@mui/material/Grid'
+import Button from '@mui/material/Button'
+import ReportIcon from '@mui/icons-material/Report'
import Modal from './Modal'
import Styles from './styles'
@@ -13,18 +15,33 @@ const ErrorModal = ({ openModal, setOpenModal, message }) => {
return (