Bug fix.
This commit is contained in:
parent
490130a9d5
commit
ebc11a82be
12
src/App.js
12
src/App.js
|
@ -26,7 +26,7 @@ function App() {
|
||||||
[lightMode, setLightMode] = useState(localStorage.getItem('light-mode') === 'true');
|
[lightMode, setLightMode] = useState(localStorage.getItem('light-mode') === 'true');
|
||||||
|
|
||||||
function SetLoader(x) {
|
function SetLoader(x) {
|
||||||
setLoader(x)
|
setLoader(x);
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleNameCheckbox() {
|
function handleNameCheckbox() {
|
||||||
|
@ -82,16 +82,6 @@ function App() {
|
||||||
setNumberOfResults(filteredData.length);
|
setNumberOfResults(filteredData.length);
|
||||||
}, [filteredData]);
|
}, [filteredData]);
|
||||||
|
|
||||||
// useEffect(() => {
|
|
||||||
// const isLight = localStorage.getItem("light-mode");
|
|
||||||
|
|
||||||
// if (JSON.parse(isLight)) {
|
|
||||||
// setLightMode(true);
|
|
||||||
// } else {
|
|
||||||
// setLightMode(false);
|
|
||||||
// }
|
|
||||||
// }, []);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (lightMode) {
|
if (lightMode) {
|
||||||
document.body.classList.add("light");
|
document.body.classList.add("light");
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
"API": {
|
"API": {
|
||||||
"ADDRESS": "http://localhost",
|
"ADDRESS": "http://192.168.1.7",
|
||||||
"PORT": 5000,
|
"PORT": 5000,
|
||||||
"MONGODB_URI": "mongodb://localhost:27017",
|
"MONGODB_URI": "mongodb://localhost:27017",
|
||||||
"DB_NAME": "sample_db",
|
"DB_NAME": "sample_db",
|
||||||
|
|
|
@ -12,7 +12,7 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
*::selection {
|
*::selection {
|
||||||
background-color: rgba(120, 120, 120, 0.9);
|
background-color: rgba(78, 78, 78, 0.9);
|
||||||
color: white;
|
color: white;
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
Ŝarĝante…
Reference in New Issue