This commit is contained in:
Daniel 2022-06-08 10:15:14 +04:30
parent 490130a9d5
commit ebc11a82be
3 changed files with 3 additions and 13 deletions

View File

@ -26,7 +26,7 @@ function App() {
[lightMode, setLightMode] = useState(localStorage.getItem('light-mode') === 'true');
function SetLoader(x) {
setLoader(x)
setLoader(x);
}
function handleNameCheckbox() {
@ -82,16 +82,6 @@ function App() {
setNumberOfResults(filteredData.length);
}, [filteredData]);
// useEffect(() => {
// const isLight = localStorage.getItem("light-mode");
// if (JSON.parse(isLight)) {
// setLightMode(true);
// } else {
// setLightMode(false);
// }
// }, []);
useEffect(() => {
if (lightMode) {
document.body.classList.add("light");

View File

@ -1,6 +1,6 @@
module.exports = {
"API": {
"ADDRESS": "http://localhost",
"ADDRESS": "http://192.168.1.7",
"PORT": 5000,
"MONGODB_URI": "mongodb://localhost:27017",
"DB_NAME": "sample_db",

View File

@ -12,7 +12,7 @@ body {
}
*::selection {
background-color: rgba(120, 120, 120, 0.9);
background-color: rgba(78, 78, 78, 0.9);
color: white;
text-shadow: none;
}