diff --git a/src/App.js b/src/App.js index 45fd636..3031d5d 100644 --- a/src/App.js +++ b/src/App.js @@ -22,16 +22,16 @@ setTimeout(()=>{ setAlert(null); },2600) } - const removeBodyClasses=()=>{ - document.body.classList.remove("bg-light"); - document.body.classList.remove("bg-dark"); - document.body.classList.remove("bg-warning"); - document.body.classList.remove("bg-danger"); - document.body.classList.remove("bg-success"); - } +// const removeBodyClasses=()=>{ +// document.body.classList.remove("bg-light"); +// document.body.classList.remove("bg-dark"); +// document.body.classList.remove("bg-warning"); +// document.body.classList.remove("bg-danger"); +// document.body.classList.remove("bg-success"); +// } const toggleMode = (cls)=>{ - removeBodyClasses(); - document.body.classList.add("bg-"+cls); + // removeBodyClasses(); + // document.body.classList.add("bg-"+cls); if(mode==='light'){ setMode('dark'); diff --git a/src/component/About.js b/src/component/About.js index 4e73046..392c027 100644 --- a/src/component/About.js +++ b/src/component/About.js @@ -1,4 +1,4 @@ -import React ,{useState} from 'react' +import React from 'react' export default function About(props) { // const [myStyle,setmyStyle]=useState({ diff --git a/src/component/Navbar.js b/src/component/Navbar.js index 8d5013d..d67652e 100644 --- a/src/component/Navbar.js +++ b/src/component/Navbar.js @@ -13,17 +13,17 @@ export default function Navbar(props) {