Skip to content

Commit 32df9e6

Browse files
committed
deletes some console.logs and fixes the manage seperators issue
1 parent 6b3c427 commit 32df9e6

File tree

9 files changed

+14
-20
lines changed

9 files changed

+14
-20
lines changed

app/src/components/ContextAPIManager/CreateTab/components/AddContextForm.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import Autocomplete, { createFilterOptions } from '@mui/material/Autocomplete';
44
import Button from '@mui/material/Button';
55
import Box from '@mui/material/Box';
66
import { Typography } from '@mui/material';
7-
import StateContext from '../../../../context/context';
87
import { useSelector } from 'react-redux';
98

109
const filter = createFilterOptions();
@@ -76,7 +75,7 @@ const AddContextForm = ({
7675
return option.name;
7776
};
7877

79-
const renderOption = (props, option) => <li {...props}>{option.name}</li>;
78+
const renderOption = (props, option) => <li style={{color:'black'}} {...props}>{option.name}</li>;
8079

8180
return (
8281
<Fragment>
@@ -95,10 +94,10 @@ const AddContextForm = ({
9594
options={allContext || []}
9695
getOptionLabel={getOptionLabel}
9796
renderOption={renderOption}
98-
sx={{ width: 425 }}
97+
sx={{ width: 425, border:'1px solid black' }}
9998
freeSolo
10099
renderInput={params => (
101-
<TextField {...params} label="Create/Select Context" />
100+
<TextField {...params} label="Create/Select Context" />
102101
)}
103102
/>
104103
<Button

app/src/components/bottom/CreationPanel.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { useSelector } from 'react-redux';
77
// This allows users to create all aspects of this application in one place.
88
const CreationPanel = (props): JSX.Element => {
99
const style = useSelector((store) => store.styleSlice);
10-
console.log('style from creation',style)
1110
return (
1211
<div className="creation-panel" style={style.style}>
1312
<ComponentPanel isThemeLight={props.isThemeLight}/>

app/src/components/main/Canvas.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ function Canvas(props): JSX.Element {
4949
// takes a snapshot of state to be used in UNDO and REDO cases
5050
snapShotFunc();
5151
// returns false for direct drop target
52-
console.log('diddrop', didDrop)
5352
if (didDrop) {
5453
return;
5554
}
@@ -131,6 +130,7 @@ function Canvas(props): JSX.Element {
131130

132131
const canvasStyle = combineStyles(defaultCanvasStyle, currentComponent.style);
133132
const darkCombinedCanvasStyle = combineStyles(darkCanvasStyle, currentComponent.style);
133+
console.log('canvas comp', currentComponent)
134134
return (
135135
<div className={'componentContainer'} ref={drop} style={!isDarkMode ? canvasStyle : darkCombinedCanvasStyle} onClick={onClickHandler}>
136136
{renderChildren(currentComponent.children)}

app/src/components/main/DemoRender.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ const DemoRender = (): JSX.Element => {
5757
//Switch between components when clicking on a link in the live render
5858
window.onmessage = (event) => {
5959
if (event.data === undefined) return;
60-
console.log('event data demo render',event.data)
6160
const component: string = event.data.data?.split('/').at(-1);
6261
const componentId =
6362
component &&

app/src/components/right/ComponentPanel.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ const ComponentPanel = ({ isThemeLight }): JSX.Element => {
145145
document.removeEventListener('keydown', keyBindCreateComponent)
146146
}
147147
}, []);
148-
console.log(isThemeLight)
149148
return (
150149
<div className={`${classes.panelWrapper}`}>
151150
{/* Add a new component*/}

app/src/containers/AppContainer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ style: store.styleSlice,
3737
// const initialStyle = useContext(styleContext);
3838
// const [style, setStyle] = useState(initialStyle);
3939
const [isThemeLight, setTheme] = useState(!isDarkMode);
40-
console.log('isthemlight in app con',isThemeLight)
4140
const dispatch = useDispatch();
4241

4342

app/src/containers/CustomizationPanel.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,6 @@ dispatch(updateUseContext({ useContextObj: useContextObj, contextParam: contextP
489489
: '';
490490
}, []);
491491

492-
console.log('isthemelight in custimization', isThemeLight)
493492

494493
useEffect(() => {
495494
document.addEventListener('keydown', keyBindedFunc);

app/src/helperFunctions/generateCode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,8 @@ const formatCode = (code: string) => {
568568
jsxBracketSameLine: true,
569569
parser: 'babel'
570570
});
571-
} else if (process.env.NODE_ENV === 'production') {
572-
return window.api.formatCode(code);
571+
// } else if (process.env.NODE_ENV === 'production') {
572+
// return window.api.formatCode(code);
573573
} else {
574574
return code;
575575
}

app/src/helperFunctions/manageSeparators.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { ChildElement } from '../interfaces/Interfaces';
22

3-
const separator = {
4-
id: 11,
5-
tag: 'div',
6-
name: 'Div',
7-
style: {},
8-
placeHolderShort: 'div',
3+
const separator = {
4+
id: 1000,
5+
tag: 'separator',
6+
name: 'separator',
7+
style: { border: 'none' },
8+
placeHolderShort: '',
99
placeHolderLong: '',
10-
// icon: HeaderIcon,
11-
framework: 'reactClassic',
10+
icon: '',
11+
framework: '',
1212
nestable: true
1313
}
1414
const manageSeparators = {};

0 commit comments

Comments
 (0)