Skip to content

Commit

Permalink
πŸ€ chore: remove console log messages on theme change (#832)
Browse files Browse the repository at this point in the history
* fix: remove console log messages

* fix: remove console log messages in app.js

* remove console log statement

---------

Co-authored-by: kajol <[email protected]>
  • Loading branch information
harmeetsingh11 and Kajol-Kumari authored Jan 20, 2024
1 parent 3dd5205 commit fd4f33d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions frontend/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ const App = () => {
localStorage.setItem("dark", !theme);
}

useEffect(() => {
console.log("Theme changed");
}, [theme, toast]);

useEffect(() => {
window.scrollTo(0, 0);
}, [pathname]);
Expand Down
1 change: 0 additions & 1 deletion frontend/src/components/util/ScrollToTop/ScrollToTop.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import style from "./scroll-to-top.module.scss";

export const ScrollTop = (props) => {
let dark = props.theme;
console.log(dark);
const [showScroll, setShowScroll] = useState(false);

const checkScrollTop = () => {
Expand Down

0 comments on commit fd4f33d

Please sign in to comment.