Skip to content

Commit a8f47d0

Browse files
buddhajjigaejonocrxkevinparkwilliamdyoonMadinventorZero
committed
Removed unncessary console.logs and commented code
Co-authored-by: jonocr <[email protected]> Co-authored-by: xkevinpark <[email protected]> Co-authored-by: williamdyoon <[email protected]> Co-authored-by: MadinventorZero <[email protected]>
1 parent 5551060 commit a8f47d0

File tree

1 file changed

+1
-42
lines changed

1 file changed

+1
-42
lines changed

app/src/components/main/DirectChildHTMLNestable.tsx

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,6 @@ const snapShotFunc = () => {
125125

126126
const handleAnnoChange = (event) => {
127127
const { value } = event.target;
128-
129-
console.log("ID ", event.target.id)
130-
console.log(event.target);
131128
if(value === '') {
132129
document.getElementById("btn" + event.target.id).style.background = '#3ec1ac';
133130
document.getElementById("btn" + event.target.id).id = 'btn' + event.target.id;
@@ -136,27 +133,6 @@ const snapShotFunc = () => {
136133
document.getElementById("btn" + event.target.id).id = 'btn' + event.target.id;
137134
}
138135
}
139-
/*
140-
const annotateOpen = (id) => {
141-
let annotateTextArea = document.getElementById("txt" + id);
142-
console.log(annotateTextArea);
143-
console.log('*********')
144-
console.log("USING ID " , id);
145-
console.log("TEXT ID HERE: ", "txt" + id);
146-
147-
annotateTextArea.addEventListener("change", function(event) {
148-
let annotateText = (this as HTMLInputElement).value
149-
console.log(annotateText)
150-
if(annotateText === '') {
151-
document.getElementById("btn" + id).style.background = '#cc99ff';
152-
document.getElementById("btn" + id).id = 'btn' + id;
153-
} else {
154-
document.getElementById("btn" + id).id = 'btn' + id;
155-
document.getElementById("btn" + id).style.background = '#3ec1ac';
156-
}
157-
});
158-
}
159-
*/
160136
// Caret End
161137

162138
// combine all styles so that higher priority style specifications overrule lower priority style specifications
@@ -175,21 +151,6 @@ const snapShotFunc = () => {
175151
combineStyles(combineStyles(defaultNestableStyle, HTMLType.style), style),
176152
interactiveStyle
177153
);
178-
//<textarea className='annotate-textarea' id={state.canvasFocus.childId}></textarea>
179-
//<button className='annotate-button-empty' onClick={() => annotateOpen(state.canvasFocus.childId)} id={state.canvasFocus.childId + 1000}>DIRECT CHILD HTML NESTABLE HERE</button>
180-
181-
/*
182-
<button className='annotate-button-empty' id={"btn" + childId} onClick={() => handleAnnoOpen(childId)}>DIRECT CHILD HTML NESTABLE HERE</button>
183-
<Modal
184-
open={open}
185-
onClose={handleClose}
186-
keepMounted={true}
187-
>
188-
<textarea className='annotate-textarea' id={state.canvasFocus.childId} onChange={handleAnnoChange}></textarea>
189-
</Modal>
190-
*/
191-
192-
193154
drag(drop(ref));
194155
return (
195156
<div onClick={onClickHandler} style={combinedStyle} ref={ref}>
@@ -203,9 +164,7 @@ const snapShotFunc = () => {
203164
name={name}
204165
style={style}
205166
>
206-
207-
</Annotation>
208-
167+
</Annotation>
209168
{/* Caret end */}
210169
</div>
211170
);

0 commit comments

Comments
 (0)