daily-code
daily-code copied to clipboard
Changes for the Issue #321 ,
Refactored the code for CodeBlock for changing themes and swithced themes for dark mode and light mode as well, and fixed an small issue where variable name is removed in SearchDialog which was failing builds
PR Fixes:
- 1 Added Changes in Themes layout so it switches the themes for CodeBlock, using highlight.js vs and vs dark themes (it can be changed to others based on preferences)
- 2 Refactored the CodeBlock so it accepts themes and conditionally importing theme files
- 3 In SearchDialog there was empty variable name which was failing local running dev, so when checking i have added the variable name which was used in file in useRef : 'scrollableContainerRef'
Resolves #321
Checklist before requesting a review
- [Done] I have performed a self-review of my code
- [Done] I assure there is no similar/duplicate pull request regarding same issue