Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Fixed theme state issue" #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Joker-Bat
Copy link

No description provided.

@vercel
Copy link

vercel bot commented Oct 23, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
codevim ✅ Ready (Inspect) Visit Preview Oct 23, 2022 at 2:48PM (UTC)

}
else if(array[1] === "js" || array[1] === "javascript"){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to understand why did u remove this and add that , is it for alignment ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't removed that, check clearly I've just added === instead of ==

const { tabCount } = props;
const {clickblob,changestateblob} = props;
const {textingchan,settextingchan} = props;
let ouputext = '';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for sorting this.


let counter = 0;
const [compo, setCompo] = useState(<CodeMirror options={{mode:'javascript', lineNumbers:true}} value="console.log('hello world')"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this to state so I can loop through the multiple instances of it. So if the user clicks on the plus symbol another instance of codemirror will be created and we can have a counter managing each instance.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for that you have to manage that as an array

{

let values = Object.values(value)
// console.log(values);
return values.map((value) => {return value});
})}; */}

{/* TO ITER THROUGH THE ARRAY AND BE ABLE TO FETCH TEH OBJECT */}
{arrary.map((value) => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how will u loop over the array of instance , without this ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are not managing it as array properly, That's why i commented that to work theme part

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please connect to me via discord killerthief#4626

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants