Skip to content

Commit fa06dd9

Browse files
committed
dev pull
1 parent 832b61c commit fa06dd9

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/ui/layouts/NonEditableRunConfig/index.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import React from 'react';
2-
import { FlexBox, Box, EditField, Paragraph } from '../../components';
2+
import { Box, EditField, Paragraph } from '../../components';
33
import styles from './index.module.scss';
44
import { titleCase } from '../../../utils';
5+
import { ToggleField } from '../common/FormElement';
56
import JSONPretty from 'react-json-pretty';
67

78
export 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
);

0 commit comments

Comments
 (0)