File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
src/ui/layouts/NonEditableRunConfig Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { FlexBox , Box , EditField , Paragraph } from '../../components' ;
2+ import { Box , EditField , Paragraph } from '../../components' ;
33import styles from './index.module.scss' ;
44import { titleCase } from '../../../utils' ;
5+ import { ToggleField } from '../common/FormElement' ;
56import JSONPretty from 'react-json-pretty' ;
67
78export const NonEditableRunConfig : React . FC < { runConfiguration : any } > = ( {
@@ -51,7 +52,7 @@ export const NonEditableRunConfig: React.FC<{ runConfiguration: any }> = ({
5152 return (
5253 < Box marginVertical = { 'md' } style = { { width : '40%' } } >
5354 < Box >
54- { console . log ( elementSchema , elementName , 'asdasdasda2222sdasd' ) }
55+ { /* { console.log(elementSchema, elementName, 'asdasdasda2222sdasd')}
5556 <FlexBox.Row justifyContent="space-between">
5657 <Paragraph>{titleCase(elementName)}</Paragraph>
5758 <label className={styles.switch}>
@@ -62,7 +63,13 @@ export const NonEditableRunConfig: React.FC<{ runConfiguration: any }> = ({
6263 />
6364 <span className={`${styles.slider} ${styles.round}`}></span>
6465 </label>
65- </ FlexBox . Row >
66+ </FlexBox.Row> */ }
67+ < ToggleField
68+ value = { elementSchema }
69+ onHandleChange = { ( ) => { } }
70+ label = { titleCase ( elementName ) }
71+ disabled = { true }
72+ />
6673 </ Box >
6774 </ Box >
6875 ) ;
You can’t perform that action at this time.
0 commit comments