Fixed following: - Dropdown selected menu color - CodeMirror render on properties tab - Placeholders on select control - Codemirror borders

This commit is contained in:
Aditya Toshniwal
2021-08-24 11:51:47 +05:30
committed by Akshay Joshi
parent c35c72c551
commit 27e446a0b0
9 changed files with 68 additions and 69 deletions

View File

@@ -31,7 +31,7 @@ const useStyles = makeStyles((theme)=>({
height: '100%'
},
controlRow: {
paddingBottom: theme.spacing(1),
marginBottom: theme.spacing(1),
},
nestedTabPanel: {
backgroundColor: theme.otherVars.headerBg,
@@ -62,7 +62,6 @@ function SQLTab({active, getSQLValue}) {
options={{
readOnly: true,
}}
isAsync={true}
readonly={true}
/>;
}
@@ -314,7 +313,7 @@ export default function FormView({
sqlTabActive = (Object.keys(tabs).length === tabValue);
/* Re-render and fetch the SQL tab when it is active */
tabs[sqlTabName] = [
useMemo(()=><SQLTab key="sqltab" active={sqlTabActive} getSQLValue={getSQLValue} />, [sqlTabActive]),
useMemo(()=><SQLTab key="sqltab" active={sqlTabActive} getSQLValue={getSQLValue} />, [sqlTabActive, value]),
];
tabsClassname[sqlTabName] = classes.fullSpace;
fullTabs.push(sqlTabName);